From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 10:07:12 2003 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 C26BD37B401 for ; Mon, 4 Aug 2003 10:07:12 -0700 (PDT) Received: from glatton.cnchost.com (glatton.cnchost.com [207.155.248.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B39643FA3 for ; Mon, 4 Aug 2003 10:07:12 -0700 (PDT) (envelope-from mwoodson@sricrm.com) Received: from squelcher.redlands (bdsl.66.14.215.39.gte.net [66.14.215.39]) by glatton.cnchost.com id NAA08581; Mon, 4 Aug 2003 13:06:27 -0400 (EDT) [ConcentricHost SMTP Relay 1.15] Errors-To: From: Mark Woodson Organization: Statistical Research, Inc. To: Technical Director , "David S. Jackson" Date: Mon, 4 Aug 2003 10:07:18 -0700 User-Agent: KMail/1.5.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308041007.18995.mwoodson@sricrm.com> cc: freebsd-questions@freebsd.org Subject: Re: [JunkMail] Re: Finding your dynamic external IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 17:07:13 -0000 On Monday 04 August 2003 08:39 am, Technical Director wrote: > On Sun, 3 Aug 2003, David S. Jackson wrote: > > If your external IP number changes, as with DHCP, is there a way > > to find out what it currently is? I was thinking you could keep > > BitchX logged into a chat channel and script a /dns yournick and > > email yourself the results from time to time. > > > > How would you do it? dhclient allows you to execute scripts when it runs. man dhclient-scripts and see the HOOKS sections, but the gist is that you can create an /etc/dhclient-(enter|exit)-hooks script to do whatever you might need. -Mark