catch PeerBadSignature exception, log error, set ns to unavailable

This commit is contained in:
Thomas Waldmann 2013-11-01 07:40:42 +01:00
parent 2089ad7ccf
commit 275f0821ca

View File

@ -254,6 +254,9 @@ def update_ns(fqdn, rdtype='A', ipaddr=None, origin=None, action='upd', ttl=60):
action, name, origin, rdtype, ipaddr)) action, name, origin, rdtype, ipaddr))
set_ns_availability(origin, False) set_ns_availability(origin, False)
raise 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): def set_ns_availability(domain, available):