RE: FC4 - Cannot resolve hosts, but nslookup works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux