diff --git a/nsupdate/main/dnstools.py b/nsupdate/main/dnstools.py index 598c8ca..07da15c 100644 --- a/nsupdate/main/dnstools.py +++ b/nsupdate/main/dnstools.py @@ -254,6 +254,9 @@ def update_ns(fqdn, rdtype='A', ipaddr=None, origin=None, action='upd', ttl=60): action, name, origin, rdtype, ipaddr)) set_ns_availability(origin, False) raise + except dns.tsig.PeerBadSignature: + logger.error("PeerBadSignature - shared secret mismatch? zone: %s" % (origin_str, )) + set_ns_availability(origin, False) def set_ns_availability(domain, available):