The steps to change the hostname on your Dedicated Server / VPS in Centos are as follows:
1.) Login to SSH as root 2.) Type "vi /etc/sysconfig/" 3.) Press insert on the keyboard and change the HOSTNAME to your preferred servername 4.) Press ESC on the keybord 5.) Save the configuration by typing ":wq!" 6.) Reboot server