Subject: Re: setting hostname at bootup
To: None <netbsd-help@netbsd.org>
From: Keith Mastin <kmastin@beechtree.ca>
List: netbsd-help
Date: 09/01/2002 17:27:29
>Folks,
>
>After reinstalling my NetBSD firewall, all is well, except...
>
>The firewall is attached to a cable modem, thus it gets its IP address via DHCP. Every time I log in, after it boots, the machine name is dhcp-353-292, or something like that. I am always logging in and changing the host name with the hostname command. How do I do this automagically?
/etc/rc.local is the last script to run during the init process. You can
just add a hostname line to the end of it.
--
Keith Mastin BeechTree Information Technology Services Inc.
137 Laird Drive Toronto M4G 3V5 http://www.beechtree.ca
(416)696-6070 Fax(416)696-6072 kmastin@beechtree.ca