Page 1 of 1

Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 9:59 am
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.

Re: Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 10:27 am
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.

Re: Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 10:36 am
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?

Re: Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 11:03 am
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.

Re: Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 12:36 pm
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.

Re: Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 1:10 pm
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.

Re: Resolve Source and Destination to DNS name

Posted: Tue Sep 01, 2015 1:13 pm
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.