FC4 - Cannot resolve hosts, but nslookup works

STYMA, ROBERT E (ROBERT) stymar at lucent.com
Tue Nov 15 16:35:42 UTC 2005


> 
> Hi,
> The following problem is occuring on my machine. ping does not work,
> but nslookup does. I get IP (and DNS server IPs for resolve.conf) from
> my ISP's DHCP server.
> 
> Any solutions please?
> 
One place to check is /etc/nsswitch.conf.

Look for the line starting with 
hosts: 

A working value is
hosts: files dns

This says when looking up host names, first check the
/etc/hosts file and then do a dns lookup.  If the dns
token is not present, ping and other utilities which
use the gethostbyname() call will not do a dns lookup.

Bob Styma




More information about the fedora-list mailing list