-----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