Re: /etc/hosts ignored

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

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

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

Put this in /etc/hosts.conf:

order hosts, bind

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

search hch.com
nameserver 206.84.208.4
nameserver 208.84.208.3

Your local nameservers will of course differ.

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

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

------------------------------------------
Howard Helbein
hch@op.net

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