DNS Q: 'host fqdn' works, 'ping ip' works, 'ping fqdn' does NOT!
"Frank Vreugdenhil" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
I am trying to get this box working using my isp dns. I verified the dns setup using the host/dig and nslookup commands. I can ping the ip address corresponding to it and ftp etc. to the internet using an ip address. It wont let me ping etc. using a fully qualified domain name. Can anyone suggest what is wrong in this setup from these symptoms? >From an strace I can see that host/dig and nslookup utilities seem to have a different method then telnet/ping/ftp to resolve names. Telnet/ping/ftp are connecting using udp to the dns port 53 (as expected). But utilities like 'host' do not seem to attempt a connect from what I can see in the trace, but still manage to get the job done. Following is a transcript of some commands: [root@ct3dev tmp]# host www.google.com www.google.com. has address 216.239.57.99 [root@ct3dev tmp]# ping -c 1 216.239.57.99 PING 216.239.57.99 (216.239.57.99) from 10.0.1.4 : 56(84) bytes of data. 64 bytes from 216.239.57.99: icmp_seq=0 ttl=45 time=305.667 msec --- 216.239.57.99 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/mdev = 305.667/305.667/305.667/0.000 ms [root@ct3dev tmp]# ping -c 1 www.google.com # this command times out ping: unknown host www.google.com [root@ct3dev tmp]# cat /etc/resolv.conf nameserver 10.0.1.1 [root@ct3dev tmp]# grep hosts /etc/nsswitch.conf hosts: files dns nisplus [root@ct3dev tmp]# cat /etc/host.conf order hosts,bind Any help here is appreciated. Frank V. _________________________________________________________________ MSN Instant Messenger now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp