Date: Tue, 30 Jan 2001 17:49:20 -0800 From: "Ben Pfountz" <netprince@vt.edu> To: "Alexander Derevyanko" <der@pc759.cs.msu.su>, <freebsd-questions@freebsd.org> Subject: Re: Can I having ppp run a program before disconnecting? Message-ID: <000e01c08b28$0b5fe300$0200a8c0@princenet> References: <000a01c08a8f$edf53380$0200a8c0@princenet> <3A7734B0.FE9B81E9@pc759.cs.msu.su>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <der@pc759.cs.msu.su> To: "Ben Pfountz" <vt.edu!netprince@pc759.cmc.msu.ru> Cc: <FreeBSD.ORG!freebsd-questions@pc759.cmc.msu.ru> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000e01c08b28$0b5fe300$0200a8c0>