Import

host=$1
ip=$2

if [ -z "$host" -o -z "$ip" ]; then
        echo Usage: $0 host ip
        exit 1
else    
        echo "update delete $host.dyn.personaltelco.net.\nupdate add $host.dyn.personaltelco.net. 3600 A $ip\nsend\n" | nsupdate -k /var/cache/bind/Kpersonaltelco-dyn.+xxx+xxxxxx.key
fi

DynDnsHowto (last edited 2009-12-26 22:21:37 by JasonMcArthur)