LinuxQuestions.org
Visit Jeremy's Blog.
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 06-30-2012, 07:06 PM   #1
sanddan01
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
I need to change hostname in RedHat 5.6 - Help needed


I need to change the hostname of a server with RHEL 5.6.
Can someone provide a reliable and supported procedure to do that?
Thank you.
 
Old 06-30-2012, 08:56 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,324
Blog Entries: 6

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
http://linux.die.net/man/1/hostname
http://www.harkness.co.uk/other/linux_config.html
 
Old 07-01-2012, 04:20 AM   #3
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Forgive me if this seems rude but have you looked into the manpages of 'hostname'. Yes, there are some people here who have all the answers you need but the point of linux is to look things up for yourself and unless you are willing to do that there would always be this peculair gap in your knowledege that would make you impossible to understand even the bare bsics.
 
Old 07-01-2012, 12:42 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,177

Rep: Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645
The command hostname will change it but not for a permanent change and you may have to restart network to get it to work also.

This should work. http://www.ducea.com/2006/08/07/how-...-linux-system/
 
Old 07-01-2012, 01:08 PM   #5
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
@jefro - yes sir I understand that hostname will _not_ change the name permanently. But the reading of the man pages will give the OP a lot of information as to how things work It was supposed to be the starting point for the OP - atleast that was what my intention was.
I apologise if there was any miscommunication.
 
Old 07-01-2012, 04:21 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,177

Rep: Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645Reputation: 3645
honeybadger,

I wasn't picking on you. Just wanted to say that the command hostname is sort of what the OP asked but not really what one would use in real life. It could be a new person just asking a homework question. Dunno.

You may not have known that teckk posted a link to hostname.

I did have to look up the range of a honey badger and also the urban dictionary meaning. Odd that a fierce animal is also a term for one that doesn't care.
 
Old 07-01-2012, 09:01 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
also this is red hat
so the VERY first stop the OP should make with a question on how to do something should be the knowledge base
https://access.redhat.com/knowledge/search
 
  


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
Hostname change Ammad Linux - General 5 05-04-2010 08:54 AM
How to change your Hostname in RedHat Linux gardenair Linux - Newbie 16 04-05-2010 03:44 AM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 10:36 PM
change hostname v1nc3nt Linux - Newbie 3 05-15-2006 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 AM.

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
Open Source Consulting | Domain Registration