These are from the "Extended DNS Error Codes" registry in the "Domain
Name System (DNS) Parameters" registry group.
NO_REACHABLE_AUTHORITY = 22
NETWORK_ERROR = 23
INVALID_DATA = 24
+ SIGNATURE_EXPIRED_BEFORE_VALID = 25
+ TOO_EARLY = 26
+ UNSUPPORTED_NSEC3_ITERATIONS_VALUE = 27
+ UNABLE_TO_CONFORM_TO_POLICY = 28
+ SYNTHESIZED = 29
+ INVALID_QUERY_TYPE = 30
+ RATE_LIMITED = 31
+ OVER_QUOTA = 32
@classmethod
def _maximum(cls):
def test_extended_errors(self):
options = [
dns.edns.EDEOption(dns.edns.EDECode.NETWORK_ERROR, "tubes not tubing"),
+ dns.edns.EDEOption(dns.edns.EDECode.RATE_LIMITED, "don't ddos me"),
dns.edns.EDEOption(dns.edns.EDECode.OTHER, "catch all code"),
]
r = dns.message.make_query("example", "A", use_edns=0, options=options)