This guide will help you how to change hostname on Centos 6.3
Present your hostname is
[root@localhost /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain [root@localhost /]#
Change by modify /etc/sysconfig/network
[root@localhost /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=Centos6.3 [root@localhost /]# init 6 [root@localhost /]#
After reboot, we will get new hostname.
login as: root [email protected]′s password: Last login: Wed Dec 5 01:05:27 2012 from 192.168.0.105 [root@Centos6 ~]#