*BSD News Article 97233


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!uunet!199.60.229.3!newsfeed.direct.ca!newsfeed.internetmci.com!howland.erols.net!vixen.cso.uiuc.edu!uwm.edu!msunews!gvsu!river.it.gvsu.edu!behrensm
From: behrensm@river.it.gvsu.edu (Matt Behrens)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PP Connection.
Date: 6 Jun 1997 12:38:28 GMT
Organization: Grand Valley State University
Lines: 30
Message-ID: <5n90c4$909@news.gvsu.edu>
References: <339575A9.63F3674E@ovnet.com> <5n8qag$20d@ui-gate.utell.co.uk>
NNTP-Posting-Host: river.it.gvsu.edu
X-Newsreader: TIN [version 1.2 PL0]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42506

Brian Somers (brian@shift.utell.net) wrote:

: In article <339575A9.63F3674E@ovnet.com>,
: 	David Calvarese <darshu@ovnet.com> writes:

: > I'm trying to set FreeBSD 3.0 (snap-970527) up to work with a service
: > called Dynamic DNS from www.ml.org.  What I need it to do when it
: > connects is to run a program that will sent my current IP address to
: > ml.org and update the DNS.  I've got my automatic connection set up so
: > that FreeBSD connects to my ISP immediatly upon startup.  My question is
: > how can I force it to execute this program whenever the user PPP program
: > connects to my ISP?

: Check out the pmdemand entry /etc/ppp/ppp.linkup.sample.

One other thing you might want to do, for a pppd-style linkup script (you
know, the ones where addresses are passed on the command line) is to put
it in like this:

	! /etc/ppp/ppp.up.sh MYADDR

This little trick lets you pass your IP address to the script (great for
dynamic DNS registerers.)  If you try to enclose the script in quotes,
like it is in ppp.linkup.sample, MYADDR won't expand.

--
  Matt Behrens
  Zigg Computer Services
  zigg@iserv.net
  http://www.iserv.net/~zigg/