LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2005, 01:35 PM   #1
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Rep: Reputation: 15
localhost question


Hi,

I want to set my hostname. I have two NICs. One is used for the internet and the other is used for my LAN.

I want my hostname to be "Neusoundz"

I am confused as to which IP to set as my hostname. Should my /etc/hosts file look like this:

127.0.0.1 localhost
10.10.10.1 Neusoundz

OR should it look like this:

127.0.0.1 Neusoundz
10.10.10.1 Neusoundz

Does it matter? When I issue the "hostname" command

I want the output to say "Neusoundz", but it keeps saying Neusoundz.Shnockered.net

How do I get my host name set as just "Neusoundz". I don't want the ".Shnockered.net" part to be included.

I have been struggling with this for a long time and noone seems to know why my hostname includes my domain.

I even tried doing this:

hostname "Neusoundz" but as soon as I open another terminal or or logout and log back in, my hostname mysteriously resets itself back to "Neusoundz.Shnockered.net

CAN SOMEBODY PLEASE HELP ME?!?

Last edited by iansoundz; 12-18-2005 at 01:46 PM.
 
Old 12-18-2005, 02:08 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
It does matter ... lo should always remain as localhost, some services
might get confused it there's no localhost defined.

To make the name stick you'll need to find and locate the entry
in Centos' config files, somewhere in /etc/sysconfig ...



Cheers,
Tink
 
Old 12-18-2005, 02:33 PM   #3
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks.....and it's "helping kids read better" NOT gooder!
 
Old 12-18-2005, 02:36 PM   #4
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Tinkster,

Thanks for the help but what ever you do, do NOT try to help kids to read.
 
Old 12-18-2005, 02:45 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ummm ... that's called sarcasm. I tried to express my dislike to
the use of phonics in trying to make children literate. Sad enough
that I had to explain it, though.



Cheers,
Tink
 
Old 12-18-2005, 07:42 PM   #6
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
you should change it to

fonics - hulping kidz reed gooda

lol
 
Old 12-18-2005, 09:11 PM   #7
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
What!?!? Whew! It sounds like you could use some phonics....
 
  


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
Localhost Localdomain Question threegig Linux - Newbie 9 06-15-2005 08:29 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 09:01 AM
localhost question DriveMeCrazy Linux - Networking 3 06-11-2004 07:24 AM
localhost.localdomain & apache question neozero62 Linux - Newbie 3 11-30-2003 04:51 PM
lan://localhost question and connection sharing steve423 Linux - Networking 4 12-27-2002 02:23 PM


All times are GMT -5. The time now is 06:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration