Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dns/edns.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@ class EDECode(dns.enum.IntEnum):
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):
Expand Down
1 change: 1 addition & 0 deletions tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ def test_section_count_update(self):
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)
Expand Down