RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit
/etc/sysconfig/network:
1 2 3 4 5 | NETWORKING= yes HOSTNAME= "plain.domainname.com" GATEWAY= "192.168.0.1" GATEWAYDEV= "eth0" FORWARD_IPV4= "yes" |