Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-23-2002, 10:46 AM   #1
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Rep: Reputation: 15
Changing hostname on Redhat 8

I am having loads of problems with setting the hostname on my Linux box - I am using redhat 8 with the XWindows GUI interface, have read most of the Redhat manuals about how the GUI overrides any changes you make in the config files...what I need is a definitive answer on how to change my hostname on the Linux box, at the moment I have a fresh install of Redhat 8 and the default hostname - localhost.localdomain, anyone feel like helping a noob?

I have tried the hostname command and it changed my hostname until I rebooted, I tried changing the settings in the "host" file and editing a different alias in the gui - not entirely sure what I did but changed it back now :$ !!

I also tried just adding the alias on the end of the hosts file so it looks like:

ip hostname aliases localhost.localdomain localhost irongate

Will the above f*** up my system of was that correct? Please help I just moved from Windows, I have a good understanding of command line and networking, can anyone supply me with the commands I need to use on Redhat 8?

Thanks ppl
Old 11-23-2002, 10:49 AM   #2
Registered: May 2002
Posts: 172

Rep: Reputation: 30
if you hav e kde running you could
kde menu > system settings > network
tab dns
change hostname and save

good luck
Old 11-23-2002, 10:53 AM   #3
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30

Original Poster
Rep: Reputation: 15

Whoa wasnt expecting a reply that quick

Am I right in thinking I can do the same in Gnome/Bluecurve

GMenu thingy > server settings > network

It has a DNS tab and the hostname is "localhost.localdomain" at the moment do I just change that to whatever I want eg "irongate" or do i need to tag on the domain as well "irongate.localdomain"?
Old 11-23-2002, 03:11 PM   #4
Registered: May 2002
Posts: 172

Rep: Reputation: 30
i think you should put a domain withit
you could always try it wuthout ir and see
what it does
Old 11-23-2002, 04:02 PM   #5
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
You can have these:

#/etc/hosts irontage.localdomain localhost irongate


Then run this:

hostname irongate.localdomain

And logout then relogin. Or restart X.
Old 01-05-2003, 12:24 PM   #6
LQ Newbie
Registered: Jan 2003
Posts: 1

Rep: Reputation: 0
The gui is fine for this, but what if one wanted to do this with out a gui?

I could set a script to run in init.d that sets the hostname, but is there another way to do this on Redhat 8 outside of the gui?

thanks in advance.


I pulled my head out of (cough) and did a search on this board.
Question answered in this post


Last edited by Otterboyy; 01-05-2003 at 12:28 PM.
Old 05-21-2003, 01:55 PM   #7
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Rep: Reputation: 30
w/o a gui change the file in /etc/sysconfig/network
it has your network config shit.



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
changing hostname sh4d0w13 Debian 4 06-14-2005 10:45 AM
Changing hostname? Alf829 Linux - Networking 2 03-08-2004 08:31 AM
Hostname changing Neorio Linux - Networking 2 01-03-2004 07:11 PM
Changing hostname tristan2600 Linux - Newbie 1 10-17-2003 08:18 PM
Changing hostname kbaldor Linux - General 1 01-31-2002 02:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 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