[techtalk] localhost, etc.

Jeff Dike jdike at karaya.com
Sat Oct 16 19:05:25 EST 1999


> Here's my /etc/hosts file: 
> 127.0.0.1       nzingha nzingha.org 

You really need to add localhost to that line.  Lots of things "know" that 
localhost refers to the local machine.

That will get you past the connect problem.

To add some background to this, /etc/hosts is usually the first place that the 
name resolver looks to turn names into ip addresses.  Usually the next step is 
to look for "nameserver" entries in /etc/resolv.conf.  The request is passed 
along to those addresses.

This process is all controlled by /etc/host.conf.  Mine has this in it (which 
is standard):

order hosts,bind

which says "check the /etc/hosts file, then the real nameservers if that 
doesn't work.

				Jeff



************
techtalk at linuxchix.org   http://www.linuxchix.org




More information about the Techtalk mailing list