Does the White Russian 0.9 DynDNS client suck just as much?

Tom Buskey tom at buskey.name
Fri Jun 15 08:42:28 EDT 2007


On 6/14/07, VirginSnow at vfemail.net <VirginSnow at vfemail.net> wrote:
>
> Of course, logging into the DynDNS UI is an easy way to manage my
> DynDNS entries.  The whole point of installing OpenWRT/ez-ipupdate
> (with which fact I opened my initial post on this subject) was to
> avoid having to do this by automating the update process!



I've been using zonedit and a cronjob script to check if my router's IP
changed.
It's got some old cruft in it.

#!/bin/sh
# What's my host-ip?
dig  @ns15.zoneedit.com $HOST. | grep "^$HOST" | awk
 '{print $NF}'  > /tmp/zonedit.dig

# What's my IP?
lynx -dump  -accept_all_cookies http://www.whatismyip.com | egrep '[0-9]' |
egre
p -iv 'page.|Lines|http:|explained|Anywher|guard|WhatIsMyIP.com' | awk
'{print $
NF}' > /tmp/zonedit.ip

#lynx -source http://www.dnsstuff.com/ | grep 'Your IP' | cut -d' ' -f3 | tr
-d
'[A-z></:]' > /tmp/zonedit.ip

# compare them
diff /tmp/zonedit.dig /tmp/zonedit.ip > /tmp/zonedit.mail
if [ $? -eq 0 ]
then
        # no update needed
        exit 0
fi

# mail status!
echo "dig" >> /tmp/zonedit.mail
cat /tmp/zonedit.dig >> /tmp/zonedit.mail
echo "ip" >> /tmp/zonedit.mail
cat /tmp/zonedit.ip >> /tmp/zonedit.mail
# need to update
#lynx -source -auth=$user:$password "
http://dynamic.zoneedit.com/auth/dynamic.h
tml?host=$HOST" > /tmp/zoneedit
wget -O - --http-user=$user--http-passwd=$password "
http://dynamic.zoneedit.co
m/auth/dynamic.html?host=$HOST"

cat /tmp/zoneedit >> /tmp/zonedit.mail
mail -s 'dd-zonedit' tom at buskey.name < /tmp/zonedit.mail
rm /tmp/zonedit.mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20070615/b3f9af44/attachment.html 


More information about the gnhlug-discuss mailing list