udhcpc doesn't set hostname in discover packet
Bug #357518 reported by
Tom Metro
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udhcp (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When invoking udhcpc (0.9.8cvs20050303-2 on Ubuntu 8.04) via /etc/network/
I haven't confirmed this with a packet sniffer, but my DHCP server behaved as if this was the case (it assigned a dynamic IP address rather than matching a rule to assign a static address based on the supplied host name). Modifying /etc/network/
(I ran across this while developing a work around for Bug #351378.)
To post a comment you must log in.
I had the same problem, I believe: udhcpc did not set the host name in the DHCP server.
When examining the problem, I learned that this is a configuration issue: interfaces and reinitializing the interface (ifdown/ifup) solved the problem.
Adding the option "hostname $(hostname)" to the configuration of the respective interface in /etc/network/
The "hostname" entry is explained in the man page for interfaces, the "$(hostname)" was just a guess (it's not explained in that man page) and worked.
However, I'd prefer this to be enabled by default as long as this can't cause other problems.