From owner-freebsd-questions Tue Jan 30 14:55:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from digitalpimp.princenet (unknown [209.100.25.219]) by hub.freebsd.org (Postfix) with ESMTP id 3BFE337B6B7 for ; Tue, 30 Jan 2001 14:55:32 -0800 (PST) Received: from bpfountz (netprince.princenet [192.168.0.2]) by digitalpimp.princenet (8.11.1/8.9.3) with SMTP id f0UMrZs05082; Tue, 30 Jan 2001 17:53:39 -0500 (EST) (envelope-from netprince@vt.edu) Message-ID: <000e01c08b28$0b5fe300$0200a8c0@princenet> From: "Ben Pfountz" To: "Alexander Derevyanko" , References: <000a01c08a8f$edf53380$0200a8c0@princenet> <3A7734B0.FE9B81E9@pc759.cs.msu.su> Subject: Re: Can I having ppp run a program before disconnecting? Date: Tue, 30 Jan 2001 17:49:20 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Actually, I am part of www.dhs.org. When I sign on, I set my IP address with them so people can go to http://netprince.2y.net and not have to know my IP address. DHS supports an offline state, so that when I am not dialed up to the internet, netprince.2y.net is redirected to an offline notification page. What I would like to do is inform DHS that I am going offline just before I go offline. This would require me to run a small program just before ppp drops the link. Is this possible with ppp? I know its possible with diald under linux. Sorry for the unprecise message before. Thanks -- Ben Pfountz Computer Science Undergraduate Virginia Tech ----- Original Message ----- From: "Alexander Derevyanko" To: "Ben Pfountz" Cc: Sent: Tuesday, January 30, 2001 1:40 PM Subject: Re: Can I having ppp run a program before disconnecting? > > > > Ben Pfountz wrote: > > > > I am using ppp in -auto mode with a 32 minute idle timeout. I would > > like to run a script just before each idle disconnect in order to > > update my DNS services to an offline state. I cant use ppp.linkdown > > because I am already disconnected from the internet when it is > > executed. Is there a way to do this? > > > > As i assume, you need to change resolv.conf - write here something like > address of you corporate DNS server. It can be safely done by > ppp.linkdown, > i don't understand why not to do it. > But you have better way to do: run named on you machine, and make it > slave DNS server to you corporate private domain. Root servers must be > defined > correctly in it configuration. No other computer in you network must > point to > you dialup machine as DNS server. > > > Please CC me because I'm not a subscriber to freebsd-questions. > > > > Thanks. > > > > -- > > Ben Pfountz > > Computer Science Undergraduate > > Virginia Tech To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message