LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2009, 01:54 AM   #1
kbklinux
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
How to change the hostname?


Hi,

I would like to how to change the hostname of my system with OS RHEL 5.0.

Thanks in advance..
 
Old 02-11-2009, 02:02 AM   #2
hallamigo
Member
 
Registered: Feb 2004
Location: Utah, USA
Distribution: Debian
Posts: 230

Rep: Reputation: 31
You should be able to do the following:

Code:
sudo hostname newhostname
 
Old 02-11-2009, 09:31 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
This guide will allow you to change the hostname and ensure you don't miss anything.. http://ase.csc.ncsu.edu/hostname.html

the /proc/sys/kernel/hostname section, near the bottom of the how-to, allows you to finalize the change without having to reboot your system. Make sure you do each check/step from the top down on this list..


enjoy !
 
Old 02-13-2009, 03:07 AM   #4
kbklinux
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Hey thanks alot friends.. that is working...
 
  


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
Change hostname? Zeno McDohl Linux - Newbie 3 02-05-2006 03:42 PM
How do you change your hostname? Thaidog Linux - Newbie 6 07-24-2005 09:52 PM
cant change hostname! secret_squirrel SUSE / openSUSE 3 04-18-2005 11:30 PM
Change hostname garlam Slackware 2 10-13-2004 03:19 AM
change hostname dincer80 Linux - Networking 3 07-31-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration