Help - Search - Members - Calendar
Full Version: Localhost Problem
Linuxhelp > Support > Technical Support
bearwood
I get the following error message quite often and I can't seem to get host.conf correct so this message does not occur. Everything appears to work OK just this annoying message.

/etc/host.conf: line 2: bad command `127.0.0.1 parents

host.conf looks like this:

order hosts,bind
127.0.0.1 parents localhost.localdomain localhost

parents is the log in name we use. The computer name is 'study' and we are running on a smoothwall network called...'smoothwall'. I am using FC3 if that makes any difference.

Can someone let me know what host.conf should look like.

TIA
Robert83
Hi,

mine looks like this :

CODE
[root@saruman root]# cat /etc/host.conf
order hosts,bind


and

CODE
[root@saruman etc]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               saruman.middleearth.vir saruman localhost.localdomain localhost
192.168.10.2            saruman.middleearth.vir


localhost is defined in hosts

the hostname of the computer is saruman.middleearth.vir (vir=virtual,used on my internal lan only, so it wouldn't cause problems with real internet addresses)

Sincerely
Robert B
bearwood
Hey Thanks Robert, That has fixed it up, so easy and so quick

Eddy
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.