catch PeerBadSignature exception, log error, set ns to unavailable
This commit is contained in:
parent
2089ad7ccf
commit
275f0821ca
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user