Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Localhost Problem
bearwood
post Feb 16 2005, 05:38 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 14
Joined: 3-January 05
Member No.: 4,431



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
Go to the top of the page
 
+Quote Post
Robert83
post Feb 16 2005, 05:47 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



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


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
bearwood
post Feb 16 2005, 05:52 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 14
Joined: 3-January 05
Member No.: 4,431



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

Eddy
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 01:00 AM