Using dhclient to update zoneedit with my dynamic IP address
JJB
Barbish3 at adelphia.net
Fri Feb 13 11:17:23 PST 2004
Ceri
Thanks for the pointer to the 'man dhclient-script'.
I read through it 3-5 times and the best I can make out of what
it says is, that if I create an file like this
/etc/dhclient-exit-hooks.sh with this content
#! /bin/sh
wget -O - --http-user=username --http-passwd=password,
'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com
'
Then every time dhclient runs (IE: at bootup and lease expire)
the dhclient-exit-hooks.sh gets run.
I this the correct interpretation?
My wget command does not need the ip address or even know that it
changed, the event of running and making contact with the zoneedit
site will give zoneedit the ip address value of the system
requesting the http url request. I just need this to be launched at
the correct time and dhclient is the correct facility and timing to
do this.
Any help would be greatly approached
Joe
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Ceri Davies
Sent: Friday, February 13, 2004 1:17 PM
To: JJB
Cc: freebsd-questions at FreeBSD. ORG
Subject: Re: Using dhclient to update zoneedit with my dynamic IP
address
On Thu, Feb 12, 2004 at 05:32:42PM -0500, JJB wrote:
> The zonedeit FAQ says this command can be used in dhclient to
> update my dynamic ip address at zoneedit when ever dhclient
> gets an new IP lease from my ISP.
>
> wget -O - --http-user=username --http-passwd=password
>
'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com
'
>
> Anybody doing this, or know what to add to /etc/dhclient.conf to
make this
> happen
Check the manpage for dhclient-script, specifically regarding the
BOUND
hook and /etc/dhclient-exit-hooks.
Ceri
--
More information about the freebsd-questions
mailing list