From owner-freebsd-questions Sun Dec 9 11: 0:15 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 6221A37B416 for ; Sun, 9 Dec 2001 11:00:10 -0800 (PST) Received: from there (213-187-161-69.dd.nextgentel.com [213.187.161.69]) by mail.broadpark.no (Postfix) with SMTP id 40DBF8420; Sun, 9 Dec 2001 19:58:39 +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 18:59:10 +0100 X-Mailer: KMail [version 1.3.1] References: <3.0.5.32.20011209100224.0101cb38@mail.sage-american.com> In-Reply-To: <3.0.5.32.20011209100224.0101cb38@mail.sage-american.com> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011209185839.40DBF8420@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 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.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message