Resolve Source and Destination to DNS name

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
johnisccp
Posts: 12
Joined: Mon Aug 31, 2015 8:50 am

Resolve Source and Destination to DNS name

Post by johnisccp »

Is there a way to get the NNA to show the source and destination with a DNS name instead of ip address?

Thanks in advance.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Resolve Source and Destination to DNS name

Post by tgriep »

If you go to Administration > Global Settings and check the boxes in this section "Resolve Hostnames in:" that will enable DNS lookups in NA.
Be sure to check out our Knowledgebase for helpful articles and solutions!
johnisccp
Posts: 12
Joined: Mon Aug 31, 2015 8:50 am

Re: Resolve Source and Destination to DNS name

Post by johnisccp »

It looks like it is resolving only one domain DNS. I have two domain DNS connecting through the switches and routers. How do I add the other domain DNS to NNA so it can resolve that domain?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Resolve Source and Destination to DNS name

Post by tgriep »

You would have to login to the NA system in a shell as root and edit the /etc/resolv.conf file.
Add an entry to your DNS servers like below.

Code: Select all

nameserver xxx.xxx.xxx.xxx
Save it and it should work for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
johnisccp
Posts: 12
Joined: Mon Aug 31, 2015 8:50 am

Re: Resolve Source and Destination to DNS name

Post by johnisccp »

I added multiple DNS servers in /etc/resolv.conf file and even restart the NNA system but it still does not resolve the ip address with the host name.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Resolve Source and Destination to DNS name

Post by tgriep »

Does it work when you are logged in to the system in a shell?
Try running a nslookup for the IP and hostname and see if it works.
Also, you may have to add more search domains in the resolv.conf file and also the sorting of the nameserver entries may have to be changed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Resolve Source and Destination to DNS name

Post by jdalrymple »

Linux's resolver was never intended to use a failover order for when a name lookup fails. The purpose of having multiple DNS servers listed is so that if one is unavailable the next in line can service the request. With that said we can't guarantee that this will work.

The right way to configure your environment is to have your DNS properly configured to forward requests to authorative servers if it doesn't have a local zone definition. It sounds like you have a DNS black hole configured at each end of your network which the resolver is certainly going to balk at.

If adding the appropriate zones or forwarders into your existing DNS environment isn't possible you can try the following 2 options in your resolv.conf:

Code: Select all

options rotate
options timeout:1
Truth be told though - I wouldn't be surprised if that didn't just break things worse.
Locked