Enum ResponseCode
Represents the response codes used in DNS queries and responses.
public enum ResponseCode
Fields
NoError = 0Indicates that no error occurred during the DNS query or response.
FormErr = 1Indicates a format error, meaning the server was unable to interpret the query due to a format issue.
ServFail = 2Indicates a server failure occurred, meaning the DNS server was unable to process the query due to an internal error.
NXDomain = 3Indicates that the domain name referenced in the DNS query does not exist.
NotImp = 4Indicates that the requested operation is not implemented on the DNS server.
Refused = 5Indicates that the DNS server refused to process the query for policy reasons.
YXDomain = 6Indicates that a name exists when it was not expected during a DNS query, typically in relation to zone integrity checks.
YXRRSet = 7Indicates that an RR (Resource Record) set exists when it should not during the DNS query or response.
NXRRSet = 8Indicates that the name exists, but no associated resource records (RR) of the requested type were found. Typically returned in DNS queries when the requested RR type is not present for the queried name.
NotAuth = 9Indicates that the server is not authoritative for the requested domain.
NotZone = 10Indicates that the specified zone is invalid for a DNS query or update.
BADVERSSIG = 16Indicates that the signature provided in a DNSSEC-enabled response is invalid due to a version or format issue.
BADKEY = 17Indicates that the key used in the DNS query or response is invalid.
BADTIME = 18Indicates a bad or out-of-date timestamp was provided during a DNS query or response, typically related to the TSIG authentication.
BADMODE = 19Indicates that the server is in a bad operating mode, which does not support the DNS operation.
BADNAME = 20Indicates that an invalid or malformed name was encountered in the DNS query or response.
BADALG = 21Indicates that a bad algorithm was specified in the DNS query or response.
BADTRUNC = 22Indicates that a BADTRUNC error occurred, which is related to a malformed or improperly truncated DNS message.