Date: Sun, 14 Dec 2008 15:48:17 +0100 (CET) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: raggen@raggens.net Cc: User Questions <freebsd-questions@freebsd.org> Subject: Re: Canonical way for DHCP->IP->/etc/hosts Message-ID: <20081214154608.B49468@wojtek.tensor.gdynia.pl> In-Reply-To: <4945035C.6040401@telia.com> References: <4945035C.6040401@telia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I am sorry if this question has been asked over and over again - however the > htdig search interface for the lists is somewhat shaky and gives referrer > errors for me. > > Pre-conditions. > Dualhomed firewalled FreeBSD7.1. One nic is LAN and the other dynamical IP > from ISP. > > Question: What is the canonical way for catching the IP address from a DHCP > assigned nic (from ISP that doesn't set hostname) and put the IP into > /etc/hosts with a hostname? man dhclient.conf you can specify your script that will be started on changes, but i won't tell you ready-to-use example because i never needed it. write your script that will fix /etc/hosts on IP change.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081214154608.B49468>