X-Git-Url: https://git.toastfreeware.priv.at/toast/tdyndns.git/blobdiff_plain/666ba1581308d62aebbaf7142595ee86cc3f9168..7abff91300d6a588da42cc2841e5fc973fe95602:/bin/tdyndns_update diff --git a/bin/tdyndns_update b/bin/tdyndns_update index b955066..27bfed0 100755 --- a/bin/tdyndns_update +++ b/bin/tdyndns_update @@ -49,7 +49,7 @@ def nsupdate_add(fqdn, ttl, ip): """ :param fqdn: Fully qualified domain name :param ip_family: A or AAAA - :raises an NsupdateError in case of errors.""" + :raises an CalledProcessError in case of errors.""" command = "update add {fqdn} {ttl} IN {ip_family} {ip}\n\n".format(fqdn=fqdn, ttl=ttl, ip_family=ipfamily_by_ip(ip), ip=ip) p = Popen(['nsupdate', '-l'], stdin=PIPE) p.communicate(command) @@ -60,7 +60,7 @@ def nsupdate_delete(fqdn, ip_family): """ :param fqdn: Fully qualified domain name :param ip_family: A or AAAA - :raises an NsupdateError in case of errors.""" + :raises an CalledProcessError in case of errors.""" command = "update delete {fqdn} {ip_family}\n\n".format(fqdn=fqdn, ip_family=ip_family) p = Popen(['nsupdate', '-l'], stdin=PIPE) p.communicate(command)