diff --git a/nsupdate/main/dnstools.py b/nsupdate/main/dnstools.py index 948438e..092009c 100644 --- a/nsupdate/main/dnstools.py +++ b/nsupdate/main/dnstools.py @@ -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)