Contributed by: masodo on Monday, August 13 2018 @ 11:08 am UTC
Last modified on
thank you and farewell #dtdns[*1] (https://t.co/1qwrlHIy1f[*2] DtDNS will be ceasing operations on August 1, 2018.)
— Tru Huynh (@huynh_tru) July 2, 2018[*3]
#!/bin/bash
#
rm -f myip*
#
wget -q www.deburger.com/myip
#
IPADDR=`/bin/grep "." myip | /bin/awk '{ print $1 }'`
#
LASTIP=`/usr/bin/nslookup -sil infinitelyremote.dynu.net ns1.dynu.com | /bin/grep -A1 infinitelyremote.dynu.net | /bin/grep Address: | /bin/awk '{ print $2 }'`
#
UPDATE="wget -O - http://api.dynu.com/nic/update?myip=$IPADDR&username=<MyUserName>&password=<MyPassword_MD5-hash>"
if [ "$IPADDR" != "$LASTIP" ]; then
$UPDATE
echo "`date` - Posted IP change from $LASTIP to $IPADDR" >> /usr/local/sbin/IP_basher_log
else
echo "`date` - IP still $IPADDR" >> /usr/local/sbin/IP_basher_log
fi
TLDR: There was precious little reporting about the demise of DtDNS so I thought I would help spread the news. I look forward to many years with DYNU and only hope if they decide to go away they might give a little more of a "heads-up" than we got from the other guy.