Date: Thu, 25 Mar 1999 11:00:28 -0800 From: "David O'Brien" <obrien@NUXI.com> To: Rahul Dhesi <dhesi@rahul.net> Cc: freebsd-current@FreeBSD.ORG Subject: Re: rc.conf issues: host identity vs host config Message-ID: <19990325110028.A71063@relay.nuxi.com> In-Reply-To: <199903251641.AA07426@bolero-x.rahul.net>; from Rahul Dhesi on Thu, Mar 25, 1999 at 08:41:22AM -0800 References: <199903251641.AA07426@bolero-x.rahul.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> I think some very basic information identifying a host should be kept > in its own place: > > host name and ip address for each network interface > > And I like the way SunOS does it: The file hostname.<if> contains the > machine's host name, where <if> is the name of the network interface. In /etc/rc.conf have the typical network_interfaces="lo0 fxp0" line, but don't have a ifconfig_fxp0="...." this will cause ``/etc/rc.network'' to run this code: # Set up all the network interfaces, calling startup scripts if needed for ifn in ${network_interfaces}; do if [ -e /etc/start_if.${ifn} ]; then . /etc/start_if.${ifn} fi This is how DHCP users run ``/sbin/dhclient''. So in ``/etc/start_if.fxp0'' you can place ``hostname foo.bar.com'' along with a ``ifconfig fxp0'' line. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990325110028.A71063>