Red Hat Enterprise Linux 6.x 1. change hostname value in /etc/sysconfig/network 2. change the ip to host mapping in /etc/hosts Red Hat Enterprise Linux 7.x 1. # hostnamectl set-hostname NewHostname