From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 21:22:18 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 26B1737B401 for ; Sun, 3 Aug 2003 21:22:18 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D38943FBD for ; Sun, 3 Aug 2003 21:22:17 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[66.30.200.37]) by comcast.net (rwcrmhc12) with ESMTP id <2003080404220101400pgptge>; Mon, 4 Aug 2003 04:22:01 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h744M0KS000422 for ; Mon, 4 Aug 2003 00:22:00 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h744LxdH000419; Mon, 4 Aug 2003 00:21:59 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: freebsd-questions@freebsd.org References: <20030803221318.GA13418@sylvester.dsj.net> <44ptjm9lc4.fsf@be-well.ilk.org> <20030804041209.GB23334@kongemord.krig.net> From: Lowell Gilbert Date: 04 Aug 2003 00:21:59 -0400 In-Reply-To: <20030804041209.GB23334@kongemord.krig.net> Message-ID: <44fzkicas8.fsf@be-well.ilk.org> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 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 04:22:18 -0000 "Bob Hall" writes: > On Sun, Aug 03, 2003 at 11:02:19PM -0400, Lowell Gilbert wrote: > > "David S. Jackson" writes: > > > > > 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? > > > > For DHCP specifically, the best thing to do is to use the > > dhclient-exit-hooks script to do whatever you want. My particular > > example is attached... > > I use > ifconfig rl0 | grep "inet " | awk '{print $2}' > where rl0 is my external interface. And how do you decide when to run that? Having dhclient do it for you makes sure it happens right away on every change, automatically...