Subject: Re: Other OSs setting NetBSD hostname
To: None <netbsd-help@netbsd.org>
From: Hernani Marques Madeira <hernani@vecirex.net>
List: netbsd-help
Date: 03/23/2005 12:59:41
On Wed, Mar 23, 2005 at 09:50:17AM +0000, Martijn van Buul wrote:

> Unfortunately, you can't tell dhclient not to touch the hostname as far
> as I know, but what you could do is adding something like
> 
> supersede host-name "my.desired.hostname";
> 
> to your /etc/dhclient.conf

One possibility could be to request only what you need from dhclient(8),
i.e.:

 echo "request subnet-mask, broadcast-address, time-offset, routers;" \
  > dhclient.conf

-- 
hernani