Subject: Re: setting hostname at bootup
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 09/03/2002 01:04:24
In article <20020901215516.GA255@linux-info.net>,
Sam Carleton <sam@linux-info.net> wrote:
>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?

Add:
	supersede host-name "foo.and.bar.com";

christos