Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 11-23-2007, 11:01 AM   #1
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
Post Host file Wrong


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 localhost hang10router geko4 geko6 geko8 geko10 geko12 geko14 geko16 geko18 geko20 geko70 geko80 geko90

the error

etc/host.conf: line 3: bad command ` localhost'
/etc/host.conf: line 4: bad command ` hang10router'
/etc/host.conf: line 5: bad command ` geko4'
/etc/host.conf: line 6: bad command ` geko6'
/etc/host.conf: line 7: bad command ` geko8'
/etc/host.conf: line 8: bad command ` geko10'
/etc/host.conf: line 9: bad command ` geko12'
/etc/host.conf: line 10: bad command ` geko14'
/etc/host.conf: line 11: bad command ` geko16'
/etc/host.conf: line 12: bad command ` geko18'
/etc/host.conf: line 13: bad command ` geko20'
/etc/host.conf: line 14: bad command ` geko70'
/etc/host.conf: line 15: bad command ` geko80'
/etc/host.conf: line 16: bad command ` geko90'

what am I doing wrong?
Old 11-23-2007, 01:02 PM   #2
LQ Guru
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,167

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
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.

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

cat /etc/hosts localhost presto I-think snail presto_2 MrBurnie sluggy
Note, there is a man page for host.conf file. Have a look there also.


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 04:02 PM
Wrong host name ToothlessRebel Linux - Networking 2 03-02-2006 03: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 03:15 AM
uploaded file on vsftpd has wrong file attributes Linux - Newbie 2 03-06-2004 09:23 AM
dig lo results in wrong host odious1 Linux - Networking 4 09-21-2003 01:53 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:11 AM.

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