Since ddclient is supposed to work with FreeDNS, but is not *actually* working on Ubuntu, changed to dnsactual.sh from afraid.org unix client listings.
Since there's no .deb, had to hack it.
location: /usr/local/bin
schedule: root crontab every minute
TOKEN="YOU WISH :-)"
PATH=/bin:/sbin:/usr/bin:/usr/sbin
IFACE=[PUBLIC-IF]
if test -f /etc/freedns/dnsactual.conf
then
CacheIP=$(cat /etc/freedns/dnsactual.conf)
fi
CurreIP=$(ifconfig $IFACE | grep -oEe "addr:[0-9\.]*" | cut -f 2 -d :)
if [ "$CurreIP" = "$CacheIP" ]
then
# Both IP are equal
echo "Update not required..."
else
# The IP has change
echo "Updating http://free.afraid.org with " $CurreIP
wget http://freedns.afraid.org/dynamic/update.php?$TOKEN -o /dev/null -O /dev/stdout
echo `date` "Updating log with IP " $CurreIP >> /var/log/dnsactual.log
fi
rm -f /etc/freedns/dnsactual.conf
echo $CurreIP > /etc/freedns/dnsactual.conf