From owner-freebsd-stable Thu Sep 27 4:53:35 2001 Delivered-To: freebsd-stable@freebsd.org Received: from shaft.techsupport.co.uk (shaft.techsupport.co.uk [212.250.77.214]) by hub.freebsd.org (Postfix) with ESMTP id 383EE37B491 for ; Thu, 27 Sep 2001 04:53:26 -0700 (PDT) Received: from rasputin by shaft.techsupport.co.uk with local (Exim 3.22 #1) id 15mZkg-0004wY-00; Thu, 27 Sep 2001 12:54:50 +0100 Date: Thu, 27 Sep 2001 12:54:50 +0100 From: Rasputin To: David Wolfskill Cc: stable@freebsd.org Subject: Re: dhclient question Message-ID: <20010927125450.A18973@shaft.techsupport.co.uk> Reply-To: Rasputin References: <20010927120610.A18723@shaft.techsupport.co.uk> <200109271148.f8RBm9l89839@bunrab.catwhisker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200109271148.f8RBm9l89839@bunrab.catwhisker.org>; from david@catwhisker.org on Thu, Sep 27, 2001 at 04:48:09AM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * David Wolfskill [010927 12:49]: > >I was wondering if there were any hooks in dhclient to run > >a script when a new address is assigned? > Yes. /sbin/dhclient-script looks for & invokes /etc/dhclient-exit-hooks > (if it's found). > >I need to update my dynamic DNS hostname with the new IP address, > >and resync my ipfilter ruleset. > For an example of the former (as well as a couple of other things) -- > which could likely be done better, but seems to work, take a look at > http://www.catwhisker.org/~david/FreeBSD/dhclient-exit-hooks. Cheers - I was about to mung /stand/dhclient-script directly , but I'll check that out first. > >Couldn't see anything in the manpages..... > It does seem to be mentioned in "man dhclient-script". Yeah, it just wasn't mentioned in dhclient.conf(5), which is where I looked. Thnaks to everyone for their replies. -- Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message