Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 72622

Summary: dhclient always sets the hostname
Product: [Retired] Red Hat Public Beta Reporter: James Ralston <ralston>
Component: dhcpAssignee: Elliot Lee <sopwith>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: null   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-26 12:56:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Ralston 2002-08-26 05:43:36 UTC
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:

    NETWORKING=yes
    HOSTNAME=farslayer.l33tskillz.org

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

My hostname:

    $ hostname
    farslayer.l33tskillz.org

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):

dhclient-3.0pl1-7

How Reproducible:

Run dhclient.

Comment 1 Elliot Lee 2002-08-26 12:56:37 UTC
The "right" solution is to fix your DHCP server to send back the correct hostname...

But an option may be added, we'll see.

Comment 2 Elliot Lee 2002-08-26 15:03:47 UTC

*** This bug has been marked as a duplicate of 72087 ***