password = form["password"].value
# run update program
-p = subprocess.Popen(["/var/lib/named/dyn-nsupdate", domain, password, ip], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+p = subprocess.Popen(["/var/lib/bind/dyn-nsupdate", domain, password, ip], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(stdout, stderr) = p.communicate()
# check what it did
if p.returncode or stderr or stdout:
- # error :/
- print "There was an error while updating the DNS: Return code %d" % p.returncode
- if stdout: print stdout
- if stderr: print stderr
+ # error :/
+ print "There was an error while updating the DNS: Return code %d" % p.returncode
+ if stdout: print stdout
+ if stderr: print stderr
else:
- print "good",ip
+ print "good",ip