catch dns.tsig.PeerBadTime
This commit is contained in:
parent
ded5e0cb8b
commit
804eda920c
@ -309,6 +309,10 @@ def update_ns(fqdn, rdtype='A', ipaddr=None, action='upd', ttl=60):
|
||||
logger.error("PeerBadSignature - shared secret mismatch? zone: %s" % (origin, ))
|
||||
set_ns_availability(domain, False)
|
||||
raise DnsUpdateError("PeerBadSignature")
|
||||
except dns.tsig.PeerBadTime:
|
||||
logger.error("PeerBadTime - DNS server did not like the time we sent. zone: %s" % (origin, ))
|
||||
set_ns_availability(domain, False)
|
||||
raise DnsUpdateError("PeerBadTime")
|
||||
except dns.message.UnknownTSIGKey as e:
|
||||
logger.error("UnknownTSIGKey [%s] - zone: %s" % (str(e), origin, ))
|
||||
set_ns_availability(domain, False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user