Red Hat Bugzilla – Bug 1183
Is this a bug in the install program?
Last modified: 2008-05-01 11:37:49 EDT
I noticed that, after an NFS install, the hostname in
/etc/sysconfig/network was always incorrectly set to
localhost.localdomain. I assumed this was a bug and
decided to try to fix it. I tracked the problem down to
this code in net.c:
if (netc->manuallySet & NETINFO_HAS_HOSTNAME)
fprintf(f, "HOSTNAME=%s\n", netc->hostname);
I don't know what to make of this. I'm completely at a loss
for words. I can't believe that it _is_ a bug, since the
code is explicitly written to avoid storing the hostname
in /etc/sysconfig/network when the hostname has been
reverse resolved (rather than manually entered.) On the
other hand, I can't believe that it is _not_ a bug, since
it's so horribly wrong.
Well, you decide.
Normally hostname is set by either dhcp or you can set it manually
using netcfg after install.