8000 Add new EDNS0 extended error codes from IANA registry · srijeet0406/dnsjava@6b94314 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b94314

Browse files
committed
Add new EDNS0 extended error codes from IANA registry
1 parent 0885fad commit 6b94314

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

src/main/java/org/xbill/DNS/ExtendedErrorCodeOption.java

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,50 @@ public class ExtendedErrorCodeOption extends EDNSOption {
150150
*/
151151
public static final int INVALID_DATA = 24;
152152

153+
/**
154+
* The signature expired before it started to become valid.
155+
*
156+
* @since 3.6
157+
* @see <a href="https://github.com/NLnetLabs/unbound/pull/604#discussion_r802678343">Unbound
158+
* PR#604</a>
159+
*/
160+
public static final int SIGNATURE_EXPIRED_BEFORE_VALID = 25;
161+
162+
/**
163+
* DNS over QUIC session resumption error.
164+
*
165+
* @since 3.6
166+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9250.html#section-4.5-3">RFC9250, 4.5</a>
167+
*/
168+
public static final int TOO_EARLY = 26;
169+
170+
/**
171+
* The NSEC3 iterations value is not supported.
172+
*
173+
* @since 3.6
174+
* @see <a href="https://www.rfc-editor.org/rfc/rfc9276.html#section-3.2">RFC9276, 3.2</a>
175+
*/
176+
public static final int UNSUPPORTED_NSEC3_ITERATIONS_VALUE = 27;
177+
178+
/**
179+
* Unable to conform to policy.
180+
*
181+
* @since 3.6
182+
* @see <a
183+
* href="https://datatracker.ietf.org/doc/draft-homburg-dnsop-codcp/01/">draft-homburg-dnsop-codcp,
184+
* 12</a>
185+
*/
186+
public static final int UNABLE_TO_CONFORM_TO_POLICY = 28;
187+
188+
/**
189+
* Result synthesized from aggressive NSEC cache.
190+
*
191+
* @since 3.6
192+
* @see <a href="https://github.com/PowerDNS/pdns/pull/12334">PowerDNS PR#12334</a>
193+
* @see <a href="https://datatracker.ietf.org/doc/html/rfc8198">RFC8198</a>
194+
*/
195+
public static final int SYNTHESIZED = 29;
196+
153197
@Getter private int errorCode;
154198
@Getter private String text;
155199

@@ -184,6 +228,11 @@ public class ExtendedErrorCodeOption extends EDNSOption {
184228
codes.add(NO_REACHABLE_AUTHORITY, "NO_REACHABLE_AUTHORITY");
185229
codes.add(NETWORK_ERROR, "NETWORK_ERROR");
186230
codes.add(INVALID_DATA, "INVALID_DATA");
231+
codes.add(SIGNATURE_EXPIRED_BEFORE_VALID, "SIGNATURE_EXPIRED_BEFORE_VALID");
232+
codes.add(TOO_EARLY, "TOO_EARLY");
233+
codes.add(UNSUPPORTED_NSEC3_ITERATIONS_VALUE, "UNSUPPORTED_NSEC3_ITERATIONS_VALUE");
234+
codes.add(UNABLE_TO_CONFORM_TO_POLICY, "UNABLE_TO_CONFORM_TO_POLICY");
235+
codes.add(SYNTHESIZED, "SYNTHESIZED");
187236
}
188237

189238
/**

0 commit comments

Comments
 (0)
0