Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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-21-2003, 09:13 PM   #1
Registered: Nov 2003
Location: Georgia
Distribution: Redhat 9
Posts: 43

Rep: Reputation: 15
changing host name

When I configured RH9 I set up my host name as alltel. I must have thought it was asking for my isp. How do I change it and what would be a logical name?
Not a big deal but it bugs me...
Old 11-21-2003, 09:16 PM   #2
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
You can change it in the /etc/hosts file. You can set it to whatever you want.

Old 11-21-2003, 09:26 PM   #3
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I think you might be able to change it in the GUI with redhat-config-network. Otherwise edit your /etc/hosts file and create an /etc/hostname file with just the hostname in it.

# Celeron 850 tinwhistle /etc/hosts file	tinwhistle	localhost.localdomain   localhost     tinwhistle     uilleann     bones
My /etc/hostname file:
A logical name would be a name that you like to use for your computer. Personally, I never liked the name My Computer....
Old 11-22-2003, 02:16 AM   #4
LQ Newbie
Registered: Nov 2003
Location: Socal
Distribution: Slackware, RedHat
Posts: 13

Rep: Reputation: 0
If the old hostname returns after reboot, just edit /etc/sysconfig/network and change HOSTNAME to whatever you want. I believe RH9 reads that file on bootup.


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 host name scng Linux - Newbie 10 10-03-2004 06:36 AM
Changing host Name velan Red Hat 4 09-28-2004 11:07 PM
Changing host name jonathanztaub Red Hat 3 05-03-2004 03:14 AM
changing host name needforspeed Linux - Software 1 02-28-2004 11:44 AM
Changing Host name coolamit78 Linux - General 2 10-04-2003 12:18 AM > Forums > Linux Forums > Linux - Newbie

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