From owner-freebsd-current Thu Mar 25 11: 0:50 1999 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 09F2C14F4B for ; Thu, 25 Mar 1999 11:00:48 -0800 (PST) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.2/8.9.1) id LAA71099; Thu, 25 Mar 1999 11:00:28 -0800 (PST) (envelope-from obrien) Date: Thu, 25 Mar 1999 11:00:28 -0800 From: "David O'Brien" To: Rahul Dhesi Cc: freebsd-current@FreeBSD.ORG Subject: Re: rc.conf issues: host identity vs host config Message-ID: <19990325110028.A71063@relay.nuxi.com> Reply-To: obrien@NUXI.com References: <199903251641.AA07426@bolero-x.rahul.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199903251641.AA07426@bolero-x.rahul.net>; from Rahul Dhesi on Thu, Mar 25, 1999 at 08:41:22AM -0800 X-Operating-System: FreeBSD 3.1-STABLE Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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. contains the > machine's host name, where 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