public class ExtendedErrorCodeOption extends EDNSOption
EDNSOption.Code
Modifier and Type | Field and Description |
---|---|
static int |
BLOCKED
The server is unable to respond to the request because the domain is on a blocklist due to an
internal security policy imposed by the operator of the server resolving or forwarding the
query.
|
static int |
CACHED_ERROR
The resolver is returning the
Rcode.SERVFAIL from its cache. |
static int |
CENSORED
The server is unable to respond to the request because the domain is on a blocklist due to an
external requirement imposed by an entity other than the operator of the server resolving or
forwarding the query.
|
static int |
DNSKEY_MISSING
A
DSRecord existed at a parent, but no supported matching DNSKEYRecord could be
found for the child. |
static int |
DNSSEC_BOGUS
The resolver attempted to perform DNSSEC validation, but validation ended in the Bogus state.
|
static int |
DNSSEC_INDETERMINATE
The resolver attempted to perform DNSSEC validation, but validation ended in the Indeterminate
state [RFC4035].
|
static int |
FILTERED
The server is unable to respond to the request because the domain is on a blocklist as
requested by the client.
|
static int |
FORGED_ANSWER
For policy reasons (legal obligation or malware filtering, for instance), an answer was forged.
|
static int |
INVALID_DATA
The authoritative server cannot answer with data for a zone it is otherwise configured to
support.
|
static int |
NETWORK_ERROR
An unrecoverable error occurred while communicating with another server.
|
static int |
NO_REACHABLE_AUTHORITY
The resolver could not reach any of the authoritative name servers (or they potentially refused
to reply).
|
static int |
NO_ZONE_KEY_BIT_SET
The resolver attempted to perform DNSSEC validation, but no Zone Key Bit was set in a DNSKEY.
|
static int |
NOT_AUTHORITATIVE
Response to a query with the Recursion Desired (RD) bit clear, or when the server is not
configured for recursion (and the query is for a domain for which it is not authoritative).
|
static int |
NOT_READY
The server is unable to answer the query, as it was not fully functional when the query was
received.
|
static int |
NOT_SUPPORTED
The requested operation or query is not supported.
|
static int |
NSEC_MISSING
The resolver attempted to perform DNSSEC validation, but the requested data was missing and a
covering
NSECRecord or NSEC3Record was not provided |
static int |
OTHER
The error in question falls into a category that does not match known extended error codes.
|
static int |
PROHIBITED
An authoritative server or recursive resolver that receives a query from an "unauthorized"
client can annotate its
Rcode.REFUSED message with this code. |
static int |
RRSIGS_MISSING
The resolver attempted to perform DNSSEC validation, but no
RRSIGRecord s could be found
for at least one RRset where RRSIGRecord s were expected. |
static int |
SIGNATURE_EXPIRED
The resolver attempted to perform DNSSEC validation, but no signatures are presently valid and
some (often all) are expired.
|
static int |
SIGNATURE_NOT_YET_VALID
The resolver attempted to perform DNSSEC validation, but no signatures are presently valid and
at least some are not yet valid.
|
static int |
STALE_ANSWER
The resolver was unable to resolve the answer within its time limits and decided to answer with
previously cached data instead of answering with an error.
|
static int |
STALE_NXDOMAIN_ANSWER
The resolver was unable to resolve an answer within its configured time limits and decided to
answer with a previously cached
Rcode.NXDOMAIN answer instead of answering with an
error. |
static int |
UNSUPPORTED_DNSKEY_ALGORITHM
The resolver attempted to perform DNSSEC validation, but a
DNSKEYRecord RRset
contained only unsupported DNSSEC algorithms. |
static int |
UNSUPPORTED_DS_DIGEST_TYPE
|
Constructor and Description |
---|
ExtendedErrorCodeOption(int errorCode)
Creates an extended error code EDNS option.
|
ExtendedErrorCodeOption(int errorCode,
String text)
Creates an extended error code EDNS option.
|
Modifier and Type | Method and Description |
---|---|
static int |
code(String text)
Gets the numeric value corresponding to an EDE text mnemonic.
|
static String |
text(int code)
Gets the text mnemonic corresponding to an EDE value.
|
public static final int OTHER
public static final int UNSUPPORTED_DNSKEY_ALGORITHM
DNSKEYRecord
RRset
contained only unsupported DNSSEC algorithms.public static final int UNSUPPORTED_DS_DIGEST_TYPE
DSRecord
RRset
contained only unsupported Digest Types.public static final int STALE_ANSWER
public static final int FORGED_ANSWER
public static final int DNSSEC_INDETERMINATE
public static final int DNSSEC_BOGUS
public static final int SIGNATURE_EXPIRED
public static final int SIGNATURE_NOT_YET_VALID
public static final int DNSKEY_MISSING
DSRecord
existed at a parent, but no supported matching DNSKEYRecord
could be
found for the child.public static final int RRSIGS_MISSING
RRSIGRecord
s could be found
for at least one RRset
where RRSIGRecord
s were expected.public static final int NO_ZONE_KEY_BIT_SET
public static final int NSEC_MISSING
NSECRecord
or NSEC3Record
was not providedpublic static final int CACHED_ERROR
Rcode.SERVFAIL
from its cache.public static final int NOT_READY
public static final int BLOCKED
public static final int CENSORED
public static final int FILTERED
public static final int PROHIBITED
Rcode.REFUSED
message with this code.public static final int STALE_NXDOMAIN_ANSWER
Rcode.NXDOMAIN
answer instead of answering with an
error.public static final int NOT_AUTHORITATIVE
public static final int NOT_SUPPORTED
public static final int NO_REACHABLE_AUTHORITY
public static final int NETWORK_ERROR
public static final int INVALID_DATA
public ExtendedErrorCodeOption(int errorCode, String text)
errorCode
- the extended error.text
- optional error message intended for human readers.public ExtendedErrorCodeOption(int errorCode)
errorCode
- the extended error.Copyright © 2022 dnsjava.org. All rights reserved.