To set host name on a CentOS/RHEL/Fedora Server to serverX.hosthat.com Edit /etc/sysconfig/network Find Replace With Edit /etc/hosts Add To find servers main IP, use ifconfig, it should be IP of eth0 in most cases. Add hostname to /etc/hostname Setting HostName