On Thu, Apr 10, 2008 at 05:02:14PM -0400, Brian McKee wrote: > > I don't understand why 'host fred' doesn't return 127.0.0.1 > > ==> host -v fred > Trying "fred.realsubdomain.realdomainname.com" > Trying "fred.realdomainname.com" > Trying "fred" > Host fred not found: 3(NXDOMAIN) > Received 97 bytes from 192.168.0.2#53 in 0 ms > > > ==> cat /etc/hosts > 127.0.0.1 localhost.localdomain localhost fred > 14.0.0.1 fake.fakelocaldomain fred2 fred3 > 192.168.0.11 realhostname.realsubdomain.realdomainname.com > realhostname > > ==> cat /etc/host.conf > order hosts,bind > multi on > nospoof on > spoofalert on > > ==> cat /etc/resolv.conf > search realsubdomain.realdomainname.com realdomainname.com > nameserver 192.168.0.2
This should be controlled by nsswitch.conf (config file for the name service switch). The hosts line should be: hosts: files dns networks: files Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]