[CentOS] inconsistent DNS results - ping vs dig vs nslookup

Owen Beckley OwenB at foxriver.com
Wed Jun 22 17:27:47 UTC 2011


> -----Original Message-----
> Behalf Of robert henrichs
> Subject: [CentOS] inconsistent DNS results - ping vs dig vs nslookup
> 
> I am getting what I believe to be inconsistent replies/results from
> my CentOs machine, trying to ping URLs.  Pinging by URL fails the DNS
> lookup, while pinging the IP address (that should have been returned)
> works.  The DNS lookup also fails NSLOOKUP, but interestingly, dig
> and wget return A records with the correct IP.
> 

What does your "hosts:" entry in /etc/nsswitch.conf look like? Does is
list dns as a source?

Mine looks like this:

hosts:      files dns

--
Owen Beckley






More information about the CentOS mailing list