Red Hat Bugzilla – Bug 72622
dhclient always sets the hostname
Last modified: 2008-05-01 11:38:03 EDT
Description of Problem:
The "dhclient" DHCP client program seems to always set the hostname of the
machine on which it is run to whatever value is returned by the DHCP server.
If there is a way to inhibit this behavior, I haven't found it.
For example, here is my /etc/sysconfig/network file:
Here is my /etc/hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain
When dhclient runs, it changes the hostname to whatever value the DHCP server
returns. This is bogus.
Version-Release number of selected component (if applicable):
The "right" solution is to fix your DHCP server to send back the correct hostname...
But an option may be added, we'll see.
*** This bug has been marked as a duplicate of 72087 ***