catch dns.tsig.PeerBadTime

This commit is contained in:
Thomas Waldmann 2014-09-08 02:44:12 +02:00
parent ded5e0cb8b
commit 804eda920c

View File

@ -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, )) logger.error("PeerBadSignature - shared secret mismatch? zone: %s" % (origin, ))
set_ns_availability(domain, False) set_ns_availability(domain, False)
raise DnsUpdateError("PeerBadSignature") 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: except dns.message.UnknownTSIGKey as e:
logger.error("UnknownTSIGKey [%s] - zone: %s" % (str(e), origin, )) logger.error("UnknownTSIGKey [%s] - zone: %s" % (str(e), origin, ))
set_ns_availability(domain, False) set_ns_availability(domain, False)