From owner-freebsd-questions@FreeBSD.ORG Sun Dec 14 14:48:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 667D51065670 for ; Sun, 14 Dec 2008 14:48:26 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1B92D8FC14 for ; Sun, 14 Dec 2008 14:48:24 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBEEmIJn049521; Sun, 14 Dec 2008 15:48:18 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBEEmHO8049518; Sun, 14 Dec 2008 15:48:18 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 14 Dec 2008 15:48:17 +0100 (CET) From: Wojciech Puchar To: raggen@raggens.net In-Reply-To: <4945035C.6040401@telia.com> Message-ID: <20081214154608.B49468@wojtek.tensor.gdynia.pl> References: <4945035C.6040401@telia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: User Questions Subject: Re: Canonical way for DHCP->IP->/etc/hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2008 14:48:26 -0000 > 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.