LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-24-2005, 02:42 PM   #1
matrixon
Member
 
Registered: Feb 2005
Location: mexico city
Distribution: 2.6.17-gentoo-r8
Posts: 127

Rep: Reputation: 15
hostname problem


im using gentoo
i modofied /etc/hosts

127.0.0.1 localhost hector

and when i bott my system it says set /etc/hosts to a valid hostname no matter what host name i use it still says this
 
Old 06-24-2005, 04:08 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
What do you get from running the "hostname" command?

Make sure that is in your hosts file.
 
Old 06-24-2005, 04:10 PM   #3
matrixon
Member
 
Registered: Feb 2005
Location: mexico city
Distribution: 2.6.17-gentoo-r8
Posts: 127

Original Poster
Rep: Reputation: 15
re

i can change the hostname with the hostname command
but i still get the error invalid hostname at startup
 
Old 06-24-2005, 04:27 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
This works for static also;
http://forums.gentoo.org/viewtopic-t...omainname.html
 
  


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
hostname problem suresheva31 Linux - Networking 2 10-13-2004 12:40 AM
Hostname - Problem ??? aurelio26 Linux - Newbie 3 10-04-2004 01:06 AM
hostname problem jnewing Red Hat 1 06-01-2004 07:23 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM
problem with hostname jackopa Linux - General 2 11-12-2001 03:13 AM


All times are GMT -5. The time now is 05:47 PM.

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