Browse - Computer Tips - How do I change the computer name of my RedHat/Fedora/CentOS box?
Keywords: hostname, computer name, reboot
Q. How do I change the computer name of my RedHat/Fedora/CentOS box?
A. As root do this command:
Where NEWNAME is the new name.
That will change the name for now but it will be reset when you
reboot. So also change:
File /etc/sysconfig/networking/profiles/default/network to read:
Older Red Hat's used to use file /etc/HOSTNAME. They did:
hostname `cat /etc/HOSTNAME`
If you want to use a GUI, this is it:
its in the DNS tab.
You'll probably want to check for the old hostname in your Apache and Postfix