dhcp hostname

Carl Karsten carl at personnelware.com
Fri Mar 10 15:48:41 UTC 2006


Derek Broughton wrote:
> Michael R. Head wrote:
> 
> 
>>On Sat, 2006-03-04 at 22:13 -0600, Carl Karsten wrote:
>>
>>>What is the right way to make a box send it's host name to the dhcp
>>>server?
>>>
>>>The goal is for the dhcp server to update dns with the supplied hostname.
>>>(yes, there are other ways of doing ddns, but I am shooting for this
>>>one.)
>>>
>>>I would think this should be the default behavior - any reason why it
>>>isn't?
>>
>>man 5 interfaces:
>>...
>>      Options
>>
>>              hostname hostname
>>                     Hostname to be requested (pump, dhcpcd, udhcpc)
>>
>>So just put a line in /etc/network/interfaces after dhcp iface line
>>saying 'hostname ubuntu' or whatever you like.
>>
> 
> Except that dhcp3-client doesn't honour that, and somewhere in
> the /etc/network/interfaces documentation it warns that not all clients
> will.  So, while I'd always recommend using this option, I also warn that
> it might not work.

Correct.  that is why dhclient isn't listed in (pump, dhcpcd, udhcpc).

Turns out dhclient can't do what I want, but

The good news is I know to stop trying:

 >    *** From dhcp-server -- To unsubscribe, see the end of this message. ***
 >
 > On Sun, Mar 05, 2006 at 01:46:25AM -0600, Carl Karsten wrote:
 >
 >>> /etc/dhcp3/dhclient.conf
 >>> send host-name "andare.fugue.com";
 >>>
 >>> Is there some way to make that pickup the current hostname?
 >
 >
 >
 > Not yet, it's on the feature request list.
 >
 > -- David W. Hankins - Internet Systems Consortium, Inc.


Thanks anyway.

^C




More information about the ubuntu-users mailing list