1. #hostname newhostname
2. modify hostname in file /etc/sysconfig/network
3. modify /etc/hosts (for dns); if you already have hosts mapping here, you can omit this step.