Change Hostname Permanently (Redhat) To change the hostname of your RedHat based distro (Fedora, Centos etc. ) system permanently ( Hostname remains the same between reboots) make sure you edit the following file accordingly: /etc/sysconfig/network