I changed the name of the hosts in /etc/hosts toIP.GOES.HERE newnameApache does recognize the new server name; but still, via ssh i get this on the ssh prompt:[root@oldname]Why? Where else do I need to change the server name? I'm using CentOS 6.3
Changing the server name
centos;hostname;hosts
On CentOS you set the system hostname in /etc/sysconfig/network.This setting change takes effect on reboot. To change the hostname on a running system without rebooting use the hostname command.