LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2002, 11:46 AM   #1
bladewalker
Member
 
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
127.0.0.1 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, 11:49 AM   #2
jetfreggel
Member
 
Registered: May 2002
Posts: 172

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

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

Original Poster
Rep: Reputation: 15
Query

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, 04:11 PM   #4
jetfreggel
Member
 
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, 05:02 PM   #5
born4linux
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
127.0.0.1 irontage.localdomain localhost irongate

#/etc/syconfig/network
HOSTNAME=irongate.localdomain

Then run this:

hostname irongate.localdomain

And logout then relogin. Or restart X.
 
Old 01-05-2003, 01:24 PM   #6
Otterboyy
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.

Otterboyy

*****
Nevermind.
I pulled my head out of (cough) and did a search on this board.
Question answered in this post http://www.linuxquestions.org/questi...tting+hostname


*****

Last edited by Otterboyy; 01-05-2003 at 01:28 PM.
 
Old 05-21-2003, 02:55 PM   #7
PlatinumRik
Member
 
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.

adios
 
  


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


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