From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 21:12:11 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 6498437B401 for ; Sun, 3 Aug 2003 21:12:11 -0700 (PDT) Received: from lakemtao03.cox.net (lakemtao03.cox.net [68.1.17.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C7F543F75 for ; Sun, 3 Aug 2003 21:12:10 -0700 (PDT) (envelope-from rjhjr@cox.net) Received: from kongemord.krig.net ([68.100.93.21]) by lakemtao03.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20030804041209.DDJL23518.lakemtao03.cox.net@kongemord.krig.net> for ; Mon, 4 Aug 2003 00:12:09 -0400 Received: by kongemord.krig.net (sSMTP sendmail emulation); Mon, 4 Aug 2003 00:12:09 -0400 From: "Bob Hall" Date: Mon, 4 Aug 2003 00:12:09 -0400 To: freebsd-questions@freebsd.org Message-ID: <20030804041209.GB23334@kongemord.krig.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20030803221318.GA13418@sylvester.dsj.net> <44ptjm9lc4.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44ptjm9lc4.fsf@be-well.ilk.org> User-Agent: Mutt/1.4.1i 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:12:11 -0000 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. Bob Hall