Subject: Re: setting hostname at bootup
To: None <netbsd-help@netbsd.org>
From: Sam Carleton <sam@linux-info.net>
List: netbsd-help
Date: 09/01/2002 17:55:17
On Mon, Sep 02, 2002 at 07:22:13AM +1000, Rene Hexel wrote:
> On Mon, 2002-09-02 at 06:49, sam@linux-info.net wrote:
>
> Set /etc/myname to whatever hostname you want to give your machine.
> If that gets overwritten by dhclient, you can create a dhclient.conf
> containing, e.g.
>
> request subnet-mask, broadcast-address, routers, domain-name,
> domain-name-servers;
>
> to restrict dhclient to just the information you are interested in
> receiving from the DHCP server.
Ok, I created a /etc/dhclient.conf which contains:
interface "iy0" {
request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name;
}
After reboot, the hostname is back to the dhcp-###-###. And
yes, iy0 is the NIC in question. Any thoughts on what I am
doing wrong?
Sam