Changing the Hostname

For most modern distros:

 

 

CentOS 6:
– Edit /etc/hosts
– Edit /etc/sysconfig/network
– Run hostname <newhostname>