From owner-freebsd-questions Sun Dec 9 15:33:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by hub.freebsd.org (Postfix) with ESMTP id 4F50337B416 for ; Sun, 9 Dec 2001 15:33:27 -0800 (PST) Received: from there (213-187-161-69.dd.nextgentel.com [213.187.161.69]) by mail.broadpark.no (Postfix) with SMTP id B64137DA6; Mon, 10 Dec 2001 00:33:25 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Kjell To: jacks@sage-american.com Subject: Re: Scripting help Date: Sun, 9 Dec 2001 23:33:54 +0100 X-Mailer: KMail [version 1.3.1] References: <3.0.5.32.20011209100224.0101cb38@mail.sage-american.com> <3.0.5.32.20011209133912.0101cb38@mail.sage-american.com> In-Reply-To: <3.0.5.32.20011209133912.0101cb38@mail.sage-american.com> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011209233325.B64137DA6@mail.broadpark.no> 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 On Sunday 09 December 2001 8:39 pm, you wrote: > Okay, you are referring to the zoneedit.py script. I already use the "lynx" > method to do the updating part and just wanted something very simple to do > internal checking on when an update is really needed rather than pinging > away at ZoneEdit more than necessary. The python script seems like an awful > long script for my simple needs.... The script will only update zoneedit when your IP address changes. In my case every 6 to 8 weeks. The script is long because it takes care of a number of modems etc.. I have stripped down my copy to just my Cisco modem, and the size is just 20% of the original size. But basically it was a waste of time to remove all the unused parts. I have added a few lines that will email me when the IP address changes. Regards from Kjell > > At 06:59 PM 12.9.2001 +0100, Kjell wrote: > >On Sunday 09 December 2001 5:02 pm, you wrote: > >> I have just set up an experimental FBSD 4.4-STABLE server using DSL with > >> dynamic ip. Using ZoneEdit DNS services, the DNS can be updated with a > >> cron script to still point to the proper name. I'm doing that now using > >> cron to run the update script every 8 hours (the connection usually runs > >> for weeks at a time without disconnect). > >> > >> However, I had rather have a script that runs every so often (xminutes) > >> and doesn't bother the DNS server unless and ONLY if a changed in the > >> dynamic IP has occured as a result of disconnect/reconnect. Here are the > >> functions I see needed, but scripting language is not yet a decent skill > >> of mine. I suspect others using dynamic IPs have this same need: Any > >> guidence appreciated once again. (I've looked at the ipcheck that uses > >> Python, but rather not go that route if possible to do the simple > >> approach below). > > > >An alternative would be to download the standard Python script from > >ZoneEdit.com It does exactly what you want. I have set mine up to check my > > IP > > >address every 5 minutes. > >Regards from Kjell.... > > Best regards, > Jack L. Stone, > Server Admin > > Sage-American > http://www.sage-american.com > jacks@sage-american.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message