From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 11:17:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD7E116A4CE for ; Fri, 13 Feb 2004 11:17:22 -0800 (PST) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C88343D1F for ; Fri, 13 Feb 2004 11:17:22 -0800 (PST) (envelope-from Barbish3@adelphia.net) Received: from barbish ([67.20.101.119]) by mta9.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040213191712.MZMW25917.mta9.adelphia.net@barbish>; Fri, 13 Feb 2004 14:17:12 -0500 From: "JJB" To: "Ceri Davies" Date: Fri, 13 Feb 2004 14:17:21 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20040213181726.GO8821@submonkey.net> Importance: Normal cc: "freebsd-questions@FreeBSD. ORG" Subject: RE: Using dhclient to update zoneedit with my dynamic IP address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 19:17:23 -0000 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@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ceri Davies Sent: Friday, February 13, 2004 1:17 PM To: JJB Cc: freebsd-questions@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 --