]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add newly allocated EDE INFO-CODEs (#1268)
authorMukund Sivaraman <muks@mukund.org>
Mon, 25 May 2026 19:25:19 +0000 (19:25 +0000)
committerGitHub <noreply@github.com>
Mon, 25 May 2026 19:25:19 +0000 (12:25 -0700)
These are from the "Extended DNS Error Codes" registry in the "Domain
Name System (DNS) Parameters" registry group.

dns/edns.py
tests/test_message.py

index 5366937cd4a8d6459cba1323a4cecc3de02f1d84..f9e9e13f2f7d4608b6efbfc2e9db940b723d1b2c 100644 (file)
@@ -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):
index 0eee2a2ecb6734f8da08294df0defff0df4f9bf6..61c7dfa96199b1a54f807fcfc0fb149623da4376 100644 (file)
@@ -1012,6 +1012,7 @@ www.dnspython.org. 300 IN A 1.2.3.4
     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)