[Bug 10239] Re: dhcp3-client: Does not send hostname to server by default

oliver oliver at schinagl.nl
Wed Jan 6 13:47:56 GMT 2010


I'm not entirely sure if this is the same bug,  I can always open a new
one, but my University wired network requires me to send my student ID
(e.g. an arbitrary string) as hostname. Uni laptops have their hostname
setup as heir student ID. Of course, I could just setup my hostname as
my student ID but why if there's a proper way of doing this.

With ISC dhcpcd I simply supplied the -h parameter and it worked.
Network manager since then has under the DHCP Client ID field under IPV4
settings for a wired connection. However this does not seem to get
passed to dhclient, as send host-name "<hostname>"; from the config file
gets used and always sent.

E.g. the DHCP Client ID field doesn't do anything. A workaround is to go
into /etc/dhcp3/dhclient.conf and comment out the send host-name
"<hostname> "; part. Now network manager nicely passes along the host-
name from the DHCP Client ID field and everything works.

So I suppose, 'a' proper fix would be to set the DHCP Client ID field to
hostname default and pass that to dhclient and not have a hardcoded
override in dhclient.conf. I also belive, and I do not know the inner
workings of network-manager, but this should be in the daemon bit of it,
and not only in the GUI bit.

oliver

-- 
dhcp3-client: Does not send hostname to server by default
https://bugs.launchpad.net/bugs/10239
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.



More information about the Ubuntu-server-bugs mailing list