LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 11-23-2007, 12:01 PM   #1
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
Post Host file Wrong


Hi

I have updated my host.conf file incorrectll> now even if I delete it and reboot the machine still comes back with the error I have included a picture of both the file I have changed and the one which keeps coming back

my changed file

ulti off
127.0.0.1 localhost
192.168.1.1 hang10router
192.168.1.4 geko4
192.168.1.6 geko6
192.168.1.8 geko8
192.168.1.10 geko10
192.168.1.12 geko12
192.168.1.14 geko14
192.168.1.16 geko16
192.168.1.8 geko18
192.168.1.20 geko20
192.168.1.70 geko70
192.168.1.80 geko80
192.168.1.90 geko90

the error


etc/host.conf: line 3: bad command `127.0.0.1 localhost'
/etc/host.conf: line 4: bad command `192.168.1.1 hang10router'
/etc/host.conf: line 5: bad command `192.168.1.4 geko4'
/etc/host.conf: line 6: bad command `192.168.1.6 geko6'
/etc/host.conf: line 7: bad command `192.168.1.8 geko8'
/etc/host.conf: line 8: bad command `192.168.1.10 geko10'
/etc/host.conf: line 9: bad command `192.168.1.12 geko12'
/etc/host.conf: line 10: bad command `192.168.1.14 geko14'
/etc/host.conf: line 11: bad command `192.168.1.16 geko16'
/etc/host.conf: line 12: bad command `192.168.1.8 geko18'
/etc/host.conf: line 13: bad command `192.168.1.20 geko20'
/etc/host.conf: line 14: bad command `192.168.1.70 geko70'
/etc/host.conf: line 15: bad command `192.168.1.80 geko80'
/etc/host.conf: line 16: bad command `192.168.1.90 geko90'

what am I doing wrong?
Adrian
 
Old 11-23-2007, 02:02 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,873

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
It looks to me as if you are updating host.conf file with stuff that belongs in /etc/hosts file. Here is what my host.conf file looks like.

Quote:
cat /etc/host.conf
order hosts,bind
multi on
And here is my /etc/hosts file-

Quote:
cat /etc/hosts
127.0.0.1 localhost
192.168.1.22 presto
192.168.1.12 I-think
192.168.1.23 snail
192.168.1.15 presto_2
192.168.1.20 MrBurnie
192.168.1.21 sluggy
Note, there is a man page for host.conf file. Have a look there also.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 05:02 PM
Wrong host name ToothlessRebel Linux - Networking 2 03-02-2006 04:15 PM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
uploaded file on vsftpd has wrong file attributes rune.kg Linux - Newbie 2 03-06-2004 10:23 AM
dig lo results in wrong host odious1 Linux - Networking 4 09-21-2003 02:53 PM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration