看板 FB_stable 關於我們 聯絡資訊
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 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"