Red Hat Bugzilla – Bug 439309
hostname ends up as localhost, despite dns resolution
Last modified: 2015-01-04 17:30:18 EST
anaconda picked up the hostname of the machine I was installing from DNS. I
changed the setting from 'manual' to 'obtain from DNS', and when I rebooted the
installed system, the hostname ended up as 'localhost.localdomain'.
So when I fill in the host name manually I keep that hostname upon reboot. Maybe
this is only when you're autofilled for the hostname via dhcp. I'll try that
I've verified with multiple installs. This no longer happens, the host name
gotten from dhcp during install remains the hostname upon boot, listed in
weird, I just updated a f9 box here, rebooted, hostname was still localhost.
fwiw, /etc/sysconfig/network-scripts/efcfg-eth0 contained
correctly, but actual hostname wasn't set.
That's odd. However we're talking about new installs, not upgrades.
What's in your /etc/hosts/ file and /etc/sysconfig/network ?
rats, /etc/sysconfig/network contained: