dhcp hostname

Derek Broughton news at pointerstop.ca
Thu Mar 9 14:22:07 UTC 2006


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.
-- 
derek





More information about the ubuntu-users mailing list