Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 72622 - dhclient always sets the hostname
dhclient always sets the hostname
Status: CLOSED DUPLICATE of bug 72087
Product: Red Hat Public Beta
Classification: Retired
Component: dhcp (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Depends On:
  Show dependency treegraph
Reported: 2002-08-26 01:43 EDT by James Ralston
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-26 08:56:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Ralston 2002-08-26 01:43:36 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.       localhost       localhost.localdomain

My hostname:

    $ hostname

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


How Reproducible:

Run dhclient.
Comment 1 Elliot Lee 2002-08-26 08:56:37 EDT
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 11:03:47 EDT

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

Note You need to log in before you can comment on or make changes to this bug.