Skip to content

Commit 64211b3

Browse files
authored
Add the rcode DSO-TYPE Not Implemented / RFC8490 (#1648)
Signed-off-by: Rob Gill <[email protected]>
1 parent 8ec9f67 commit 64211b3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

msg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ var RcodeToString = map[int]string{
147147
RcodeNXRrset: "NXRRSET",
148148
RcodeNotAuth: "NOTAUTH",
149149
RcodeNotZone: "NOTZONE",
150+
RcodeDSOTypeNI: "DSOTYPENI",
150151
RcodeBadSig: "BADSIG", // Also known as RcodeBadVers, see RFC 6891
151152
// RcodeBadVers: "BADVERS",
152153
RcodeBadKey: "BADKEY",

types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ const (
137137
RcodeNXRrset = 8 // NXRRSet - RR Set that should exist does not [DNS Update]
138138
RcodeNotAuth = 9 // NotAuth - Server Not Authoritative for zone [DNS Update]
139139
RcodeNotZone = 10 // NotZone - Name not contained in zone [DNS Update/TSIG]
140+
RcodeDSOTypeNI = 11 // DSOTypeNI - DSO-TYPE not implemented [DNS Stateful Operations] https://www.rfc-editor.org/rfc/rfc8490.html#section-10.2
140141
RcodeBadSig = 16 // BADSIG - TSIG Signature Failure [TSIG] https://www.rfc-editor.org/rfc/rfc6895.html#section-2.3
141142
RcodeBadVers = 16 // BADVERS - Bad OPT Version [EDNS0] https://www.rfc-editor.org/rfc/rfc6895.html#section-2.3
142143
RcodeBadKey = 17 // BADKEY - Key not recognized [TSIG]

0 commit comments

Comments
 (0)