[nzlug] assign host name to computer

Michal Ludvig michal at logix.cz
Mon Mar 5 13:22:11 NZDT 2007


Robin Sheat wrote:
> On Monday 05 March 2007 12:54, Michal Ludvig wrote:
>> a) configure your system to send the hostname from #1 above in the DHCP
>> request and let the DHCP server update DNS, or
> For some reason, Linux doesn't do this by default. 

"Linux" does. I mean, my laptop does by default.

> How do you make it do that, 
> anyone know (Ubuntu in particular, but I'm sure I could work it out from any 
> description)?

Oh you don't use OpenSUSE? OK, then ;-)

In Ubuntu edit /etc/dhcp3/dhclient.conf and uncomment+edit the "send
host-name" line.

AFAIK in Suse it sends the actual hostname while in Ubuntu it sends the
string from dhclient.conf (which in most cases will be the hostname
anyway). But it's good to know about this difference.

Michal



More information about the NZLUG mailing list