From 64211b39d1bc2a10df0e8beab070f4b72f8d62eb Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Sun, 20 Apr 2025 17:22:51 +1000 Subject: [PATCH] Add the rcode DSO-TYPE Not Implemented / RFC8490 (#1648) Signed-off-by: Rob Gill --- msg.go | 1 + types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/msg.go b/msg.go index 5fa7f9e8..a46d9498 100644 --- a/msg.go +++ b/msg.go @@ -147,6 +147,7 @@ var RcodeToString = map[int]string{ RcodeNXRrset: "NXRRSET", RcodeNotAuth: "NOTAUTH", RcodeNotZone: "NOTZONE", + RcodeDSOTypeNI: "DSOTYPENI", RcodeBadSig: "BADSIG", // Also known as RcodeBadVers, see RFC 6891 // RcodeBadVers: "BADVERS", RcodeBadKey: "BADKEY", diff --git a/types.go b/types.go index e39cf2fe..22f03372 100644 --- a/types.go +++ b/types.go @@ -137,6 +137,7 @@ const ( RcodeNXRrset = 8 // NXRRSet - RR Set that should exist does not [DNS Update] RcodeNotAuth = 9 // NotAuth - Server Not Authoritative for zone [DNS Update] RcodeNotZone = 10 // NotZone - Name not contained in zone [DNS Update/TSIG] + RcodeDSOTypeNI = 11 // DSOTypeNI - DSO-TYPE not implemented [DNS Stateful Operations] https://www.rfc-editor.org/rfc/rfc8490.html#section-10.2 RcodeBadSig = 16 // BADSIG - TSIG Signature Failure [TSIG] https://www.rfc-editor.org/rfc/rfc6895.html#section-2.3 RcodeBadVers = 16 // BADVERS - Bad OPT Version [EDNS0] https://www.rfc-editor.org/rfc/rfc6895.html#section-2.3 RcodeBadKey = 17 // BADKEY - Key not recognized [TSIG]