Date: Thu, 7 Oct 2010 11:14:46 -0400 From: Brian Reichert <reichert@numachi.com> To: Mamoru Iwaki <1wkmmr@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: How dhcp client can set its hostname properly on lease time Message-ID: <20101007151446.GH67344@numachi.com> In-Reply-To: <4CADBF20.1040000@gmail.com> References: <4CADBF20.1040000@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 07, 2010 at 09:37:52PM +0900, Mamoru Iwaki wrote: > Now, my question is > > Are there good way for dhcp client to set its hostname properly on lease > time? Depends on 'properly'. I've hacked dhclient exit scripts to synthesize a hostname, if one was not offered by the DHCP server. The host, under these circumstances, gets a hostname derived from the IP address and the supplied domain name, eg: '10-12-34-56.example.com'. This at least gets the box into a place where it has a hostname associated with the address on an external interface. No one else knows that hostname, however. YMMV. > > Cheers > > -- > ----- > Mamoru IWAKI > Grad. Schl. Sci & Tech./Dept. Biocybernetics, Niigata University -- Brian Reichert <reichert@numachi.com> 55 Crystal Ave. #286 Derry NH 03038-1725 USA BSD admin/developer at large
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101007151446.GH67344>
