LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS rename machine (https://www.linuxquestions.org/questions/linux-newbie-8/centos-rename-machine-901490/)

KimWill 09-06-2011 07:01 PM

CentOS rename machine
 
I am building my first CentOS 5 box and discovered I need to rename the box (host, machine). How do I do that in Linux?

corp769 09-06-2011 07:41 PM

Hello,

You should have been given the option when you installed CentOS. Otherwise, just use the "hostname" command to change your hostname.

Cheers,

Josh

evo2 09-06-2011 09:26 PM

Hi,

changing the hostname on the fly on Redhat based systems (like CentOS) seems to need some additional tweaks. I've used the following method to change the hostname on such systems in the past.

http://www.xenocafe.com/tutorials/li...boot/index.php

Cheers,

Evo2.

KimWill 09-12-2011 02:44 PM

Thanks Corp769 and evo2.


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