From owner-freebsd-questions Sun Sep 29 17:25:33 2002 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 1A5BC37B401 for ; Sun, 29 Sep 2002 17:25:32 -0700 (PDT) Received: from pop015.verizon.net (pop015pub.verizon.net [206.46.170.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FC0643E65 for ; Sun, 29 Sep 2002 17:25:31 -0700 (PDT) (envelope-from leblanc@outgoing.verizon.net) Received: from keyslapper.org ([68.160.3.80]) by pop015.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20020930002530.VPEX1398.pop015.verizon.net@keyslapper.org> for ; Sun, 29 Sep 2002 19:25:30 -0500 Received: from keyslapper.org (localhost [127.0.0.1]) by keyslapper.org (8.12.3/8.12.3) with ESMTP id g8U0PXQd002631 for ; Sun, 29 Sep 2002 20:25:33 -0400 (EDT) (envelope-from leblanc@keyslapper.org) Received: (from leblanc@localhost) by keyslapper.org (8.12.3/8.12.3/Submit) id g8U0PXc1002630 for freebsd-questions@FreeBSD.org; Sun, 29 Sep 2002 20:25:33 -0400 (EDT) Date: Sun, 29 Sep 2002 20:25:33 -0400 From: Louis LeBlanc To: FreeBSD Questions Subject: PPP, dynamic IPs, and handling renumbering Message-ID: <20020930002532.GC430@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.org Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.1i X-Authentication-Info: Submitted using SMTP AUTH LOGIN at pop015.verizon.net from [68.160.3.80] at Sun, 29 Sep 2002 19:25:30 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a new question. I have ppp set up on interface tun0, got my IP and all, handling the DSL connection quite nicely - so far. Now the question: Since the IP is dynamic, I have some things that need doing anytime it changes, like update the Apache config and restart it, update the zoneedit dns records so I still get my mail, etc. Where do I handle this? Is there an exit hook I can specify for ppp to call when it gets a new IP? I can't even find the dhcp lease or the network broadcast info. When I was with AT&T, it was basic DHCP and it all went into /var/db/dhclient.leases. The only place I can get the IP from now is ifconfig tun0 So is there an exit hook mechanism for ppp? If not, I'm very interested in knowing what other people are doing out there to handle this issue. Thanks a lot. Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ I used to work in a fire hydrant factory. You couldn't park anywhere near the place. -- Steven Wright To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message