From: Philipp Spitzer Date: Tue, 25 Mar 2014 22:50:30 +0000 (+0100) Subject: Now using the new python shell script nsupdate_dyndns X-Git-Tag: 0.0.2~19 X-Git-Url: https://git.toastfreeware.priv.at/toast/tdyndns.git/commitdiff_plain/550c5bcd6803fa6f21b402941c3d2d607753e6df Now using the new python shell script nsupdate_dyndns --- diff --git a/cgi-bin/dyndns.py b/cgi-bin/dyndns.py index 3fe5162..d62ebfc 100755 --- a/cgi-bin/dyndns.py +++ b/cgi-bin/dyndns.py @@ -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"