]> ToastFreeware Gitweb - toast/tdyndns.git/blobdiff - cgi-bin/dyndns.py
Now using the new python shell script nsupdate_dyndns
[toast/tdyndns.git] / cgi-bin / dyndns.py
index 3fe516258195694b5d33a39d379ec076317d59d1..d62ebfc79e31720dcd92fff306da96da5b45d778 100755 (executable)
@@ -163,10 +163,9 @@ try:
 
        # update bind
        if offline:
-               call(['sudo', '/usr/local/bin/nsupdate_dyndns_del', hostname, 'A'])
-               call(['sudo', '/usr/local/bin/nsupdate_dyndns_del', hostname, 'AAAA'])
+               call(['sudo', '/usr/local/bin/nsupdate_dyndns', '--delete', hostname])
        else:
-               call(['sudo', '/usr/local/bin/nsupdate_dyndns', hostname, myip, iptype])
+               call(['sudo', '/usr/local/bin/nsupdate_dyndns', '--ip', myip, hostname])
 
        # return success
        print "Content-Type: text/html"