LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dig doesn't resolve host instead showing IP address (https://www.linuxquestions.org/questions/linux-software-2/dig-doesnt-resolve-host-instead-showing-ip-address-4175435125/)

mojorisin 11-01-2012 02:38 PM

dig doesn't resolve host instead showing IP address
 
Hello,

I'm running DiG 9.7.6-P1 and I was trying to analyze the DNS lookup via dig. When I enter the following command
Code:

$ dig +trace +additional -t A www.heise.de
I'm receiving something like this
Code:

de.                        172800        IN        NS        a.nic.de.
de.                        172800        IN        NS        f.nic.de.
de.                        172800        IN        NS        s.de.net.
de.                        172800        IN        NS        z.nic.de.
de.                        172800        IN        NS        n.de.net.
de.                        172800        IN        NS        l.de.net.
;; Received 344 bytes from 192.36.148.17#53(192.36.148.17) in 379 ms

My second linux machine is giving me the following output:

Code:

de.                        172800        IN        NS        a.nic.de.
 de.                        172800        IN        NS        n.de.net.
 de.                        172800        IN        NS        f.nic.de.
 de.                        172800        IN        NS        z.nic.de.
 de.                        172800        IN        NS        l.de.net.
 de.                        172800        IN        NS        s.de.net.
 ;; Received 344 bytes from 192.58.128.30#53(j.root-servers.net) in 32 ms

As you can see, the last line is different. I'm trying to get my first machine also showing the host name of the responding DNS-Server instead of the IP-address. Any ideas where the problem is?

bathory 11-02-2012 08:48 AM

Hi,

I guess this is due to different dig versions. I see the same behavior (resolving the respong dns IP) for bind-9.7.3, but not for the more recent bind-9.9.2 and 9.8.4.
Tried to find in the CHANGES file when that happened, but didn't succeed.

Regards


All times are GMT -5. The time now is 06:09 PM.