Bug 64298 - DHCP Client does not send hostname to dhcp server
DHCP Client does not send hostname to dhcp server
Product: Red Hat Linux
Classification: Retired
Component: dhcpcd (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Depends On:
  Show dependency treegraph
Reported: 2002-05-01 17:26 EDT by BIX Redhat Network Account
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-05-01 17:26:51 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 BIX Redhat Network Account 2002-05-01 17:26:47 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Description of problem:
The dhcp client in redhat 7.2 running on an intel machine is not sending it's 
hostname to the dhcp server.  Therefore, the client receives an IP address but 
receives as a hostname the default hostname configured for the scope.  I 
inspected my dhcp server's log which contains all the traffic between client 
and server among other things and did not see the hostname passed for my 
redhat machine.  I did a release/renew on my windows XP box and did see the 
hostname being passed.  So for whatever reason the client is not properly 
sending its hostname to the server.  

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Release and/or delete the lease assigned to the client
2. Reboot the client
3. Inspect lease file after client receives address and see that it's hostname 
is not properly registered with the IP it received.

Actual Results:  Client received an IP address but the hostname registered for 
it in DNS was the default hostname assigned by the server

Expected Results:  I expected the client to properly send its hostname to the 
dhcp server.

Additional info:
Comment 1 Elliot Lee 2002-05-01 17:43:03 EDT
You need to add a line of the format:

DHCPCDARGS="-h hostname"

to /etc/sysconfig/network

In most situations the server has the correct knowledge of the hostname, and not
the client, thus a default setting that doesn't work in your situation.

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