Re: /etc/hosts ignored

David Mosberger-Tang (davidm@azstarnet.com)
Sun, 8 Dec 1996 15:38:04 -0700

>>>>> On Sun, 8 Dec 1996 16:03:22 +1130 (???), Howard Helbein <hch@vern.hch.com> said:

>> > > | I have entries in /etc/hosts, but they are not recognized.
>> > > Put 'order local,bind' in your /etc/resolv.conf. > This
>> doesnt work. Perhaps it should be: order hosts,bind

Howard> I had the same problem and the problem was fixed by doing
Howard> something a little different:

Howard> Put this in /etc/hosts.conf:

Howard> order hosts, bind

Howard> This is what I have in /etc/resolv.conf (hch.com is my bogus
Howard> domain name):

Howard> search hch.com nameserver 206.84.208.4 nameserver
Howard> 208.84.208.3

Howard> Your local nameservers will of course differ.

>> But you really need /etc/nsswitch.conf as mentioned earlier.

Howard> I agree along with everyone else on this. Also make sure
Howard> you have a 127.0.0.1 localhost loopback in your /etc/hosts
Howard> file.

Just returned from a trip, so I haven't followed this discussion
closely. My apologies if this has been said already:

/etc/hosts.conf is completely ignored when using a glibc-based system
(i.e., RH4.0 on Alpha or Craftworks v2.0 on Alpha). The hosts.conf
file was a Linux-specific "hack" that has been replaced by the more
general (and more common) /etc/nsswitch.conf. The file is described
in the glibc info pages, but (AFAIK) it's identical to the file of the
same name on SVr4 based machines.

--david

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices