Thread: DynDNS client
View Single Post

   
  #6 (permalink)  
Old 02-16-2008, 06:21 AM
Pertti Kosunen
 
Posts: n/a
Default Re: DynDNS client

"Rene Schrader-Boelsche" <rene@villa-cossio.com> wrote in message
news:c10jov$crd$00$1@news.t-online.com...
> which recommended DynDNS clients are around? A fancy perl script would
> by nice. So I don't have to open new ports


Shell script that uses lynx:

#!/bin/sh

# http://www.dyndns.org/developers/specs/syntax.html
# for more options

username=test
password=test
hostname=test.ath.cx
ip=`ifconfig xl0 |grep "inet " |awk '{print $2}'`
# change xl0 to out interface

echo -n ' DynDns'
echo

case "$1" in
start)
lynx -dump -auth=${username}:${password}
"http://members.dyndns.org/nic/update?system=dyndns&hostname=${hostname}&myi
p=${ip}&wildcard=OFF&offline=NO"
;;

stop)
lynx -dump -auth=${username}:${password}
"http://members.dyndns.org/nic/update?system=dyndns&hostname=${hostname}&off
line=YES"
;;

*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0


Reply With Quote