Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-03-2003, 12:48 AM   #1
LQ Newbie
Registered: Jul 2003
Location: India
Posts: 12

Rep: Reputation: 0
Question setting hostname

I have RH Linux 8.0 . My Hostname is Metro9 , now i want to change the hostname
to Metro1. I have tried the hostname -v command for setting the hostname, it does work
but after rebooting , again original hostname comes ...please help.
Old 07-03-2003, 02:09 AM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmm...have you tried editing /etc/hosts ? I don't see why it would get over-rided at boot but maybe going directly to the source would help.
Old 07-03-2003, 03:48 AM   #3
LQ Newbie
Registered: Jul 2003
Location: India
Posts: 12

Original Poster
Rep: Reputation: 0
I got it. I have changed the hostname in /etc/hosts as well as in /etc/sysconfig/network file.
It worked.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Hostname abhijeetudas Linux - Networking 1 06-04-2005 07:10 AM
setting up my hostname lawkh Linux - Newbie 3 01-23-2004 04:22 PM
setting up hostname in RH9 wiredX Linux - General 9 07-15-2003 10:46 AM
setting hostname skunk1 Solaris / OpenSolaris 3 04-02-2003 01:00 AM
setting up a hostname sakeeb Linux - Networking 3 04-28-2002 04:37 AM

All times are GMT -5. The time now is 03:54 PM.

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