diff --git a/nsupdate/main/dnstools.py b/nsupdate/main/dnstools.py index 7f036a8..f253477 100644 --- a/nsupdate/main/dnstools.py +++ b/nsupdate/main/dnstools.py @@ -315,6 +315,10 @@ def update_ns(fqdn, rdtype='A', ipaddr=None, origin=None, action='upd', ttl=60): logger.error("PeerBadSignature - shared secret mismatch? zone: %s" % (origin, )) set_ns_availability(domain, False) raise DnsUpdateError("PeerBadSignature") + except dns.message.UnknownTSIGKey as e: + logger.error("UnknownTSIGKey [%s] - zone: %s" % (str(e), origin, )) + set_ns_availability(domain, False) + raise DnsUpdateError("UnknownTSIGKey") def set_ns_availability(domain, available):