Date: Tue, 4 Mar 2003 03:01:04 +0100 From: Martin Karlsson <mk-freebsd@bredband.net> To: Hostmaster@Video2Video.Com Cc: questions@freebsd.org, sdbug@sdbug.org Subject: Re: SBC DSL vs Fbsd 4.7 PPPoE? Message-ID: <20030304020104.GJ1487@c-483a70d5.036-23-6f72652.cust.bredbandsbolaget.se> In-Reply-To: <20030304010550.F214264C2E@mail.cloud9.net> References: <20030304010550.F214264C2E@mail.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* Hostmaster@Video2Video.Com <Hostmaster@Video2Video.Com> [2003-03-03 17.05 -0800]: [SNIP] > Also, how do I know what hostname to set in my rc.conf file ... before > I've been assigned a dynamic IP?? Hi. Using DHCP you should be assigned a hostname automatically. No need to set HOSTNAME manually in /etc/rc.conf. If not assigned one (sadly, this happens with some ISPs), whip up a script that finds your IP in /var/db/dhclient.leases and runs it through host(1) and then sets it as your hostname. Have it run on startup by naming it whatever.sh, make it executable and put it in /usr/local/etc/rc.d. HTH -- Martin Karlsson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030304020104.GJ1487>