LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-01-2003, 03:47 AM   #1
AttOMIXT
LQ Newbie
 
Registered: Oct 2003
Location: Butler, PA
Distribution: Redhat 9.0
Posts: 9

Rep: Reputation: 0
Hostname change


Where do I change my overall hostname display in Redhat 9? It says localhost.localdomain still
 
Old 11-01-2003, 03:57 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what i was told by redhat using version 7.3 was to add the name you want in /etc/hosts and in /etc/sysconfig/network

/etc/hosts:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	localhost.localdomain	localhost	Tron
/etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=Tron
my computer name is Tron.

edit: oh yeah, this change is not immediate until you reboot. you could run the hostname command (as root i imagine) setting setting this though to get the hostname in your current session.

something like i think:

Code:
hostname -F /etc/sysconfig/network
but i'm not sure. do a 'man hostname'

Last edited by megaspaz; 11-01-2003 at 04:02 AM.
 
Old 11-01-2003, 11:10 PM   #3
AttOMIXT
LQ Newbie
 
Registered: Oct 2003
Location: Butler, PA
Distribution: Redhat 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
THx I got it.
 
  


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
How do you change your hostname? Thaidog Linux - Newbie 6 07-24-2005 08:52 PM
Change hostname garlam Slackware 2 10-13-2004 02:19 AM
How to change hostname blackbart Linux - Newbie 2 02-01-2004 02:56 PM
change hostname dincer80 Linux - Networking 3 07-31-2003 01:30 AM
change hostname kafnir Linux - Networking 1 10-21-2002 11:10 AM


All times are GMT -5. The time now is 08:20 PM.

Main Menu
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