Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2001 12:54:50 +0100
From:      Rasputin <rara.rasputin@virgin.net>
To:        David Wolfskill <david@catwhisker.org>
Cc:        stable@freebsd.org
Subject:   Re: dhclient question
Message-ID:  <20010927125450.A18973@shaft.techsupport.co.uk>
In-Reply-To: <200109271148.f8RBm9l89839@bunrab.catwhisker.org>; from david@catwhisker.org on Thu, Sep 27, 2001 at 04:48:09AM -0700
References:  <20010927120610.A18723@shaft.techsupport.co.uk> <200109271148.f8RBm9l89839@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* David Wolfskill <david@catwhisker.org> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010927125450.A18973>