Red Hat Bugzilla – Bug 246664
hostname is set, but cannot be resolved
Last modified: 2007-11-30 17:12:09 EST
Description of problem: I have an xDSL connection defined for an ISP, and eth0
set on DHCP. The ISP will supply a 192.168.x.x IP for eth0 and routable for ppp0
It will also supply a hostname (e.g. dchpp48) which is set by Linux, but which
has no entry in /etc/hosts. Upon login, Gnome complains it can't resolve current
# Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express
Fix: create correct entry in /etc/hosts
Please let me know if other details are needed.
Your /etc/sysconfig/network file is incorrect. It looks like you were hit with
a bug found in F-7 where 'yes' is written at the beginning of the HOSTNAME=
line. Remove the 'yes' at the beginning so that file is parsed correctly.
The /etc/hosts file is not modified by dhclient or the ifup/ifdown scripts.
That file is meant to be edited manually by the admin of the system.
Correct the /etc/sysconfig/network file and you should be fine after that.