From owner-freebsd-questions Fri Jul 5 5:31:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A29BF37B400 for ; Fri, 5 Jul 2002 05:31:15 -0700 (PDT) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A47C43E70 for ; Fri, 5 Jul 2002 05:31:11 -0700 (PDT) (envelope-from dgilbert@velocet.ca) Received: from canoe.velocet.net (canoe210.velocet.net [216.138.240.43]) by sabre.velocet.net (Postfix) with ESMTP id 288DC137F42; Fri, 5 Jul 2002 08:31:10 -0400 (EDT) Received: by canoe.velocet.net (Postfix, from userid 101) id 2951556797D; Fri, 5 Jul 2002 08:31:09 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15653.37260.955780.275037@canoe.velocet.net> Date: Fri, 5 Jul 2002 08:31:08 -0400 To: Andrew J Caines Cc: FreeBSD-Questions Subject: [FBSD-Q] Re: Dynamic DNS Client experiences? In-Reply-To: <20020704233132.GR10927@hal9000.halplant.com> References: <20020704055534.T20112-100000@small.pukruppa.de> <20020704100946.S97579-100000@seven.slakin.net> <20020704233132.GR10927@hal9000.halplant.com> X-Mailer: VM 7.04 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid 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 >>>>> "Andrew" == Andrew J Caines writes: Andrew> # cd /usr/ports/net ; make search key=dynamic I use dyndns.org. It's the "ddup" port. It works well, but I had to write a little script (called form dhclient-exit-hook) to only call ddup when the IP _changes_ (the aparently don't want to hear from you if it doesn't). Note that if you run ntpd, you have to kill it before running dhclient. I do this in /etc/rc.resume (for the internal ethernet) and in /etc/pccard_ether for pccard devices. #!/bin/bash # # Check for changes in the IP. if [ "$reason" != "REBOOT" -a "$reason" != "BOUND" ] then exit 0 fi lastip=`cat /etc/lastip` if [ "$new_ip_address" != "0.0.0.0" -a "$new_ip_address" != "$lastip" ] then #echo $curip $lastip echo $new_ip_address >/etc/lastip /usr/local/sbin/ddup --host yourhost.homeip.net > /dev/null 2>&1 fi if /bin/ps -ax | /usr/bin/grep -v grep | /usr/bin/grep -q ntpd then : else sleep 15 /usr/bin/killall -9 ntpd /usr/sbin/ntpdate some.ntp.host /usr/sbin/ntpd -p /var/run/ntpd.pid fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message