public enum ReturnCodePublic Enumeration ReturnCodepublic enum class ReturnCodetype ReturnCode| NoError | 0 | No error Defined in RFC 1035. |
| FormatError | 1 | Format error Defined in RFC 1035. |
| ServerFailure | 2 | Server failure Defined in RFC 1035. |
| NxDomain | 3 | Non-existent domain Defined in RFC 1035. |
| NotImplemented | 4 | Not implemented Defined in RFC 1035. |
| Refused | 5 | Query refused Defined in RFC 1035. |
| YXDomain | 6 | Name exists when it should not Defined in RFC 2136. |
| YXRRSet | 7 | Record exists when it should not Defined in RFC 2136. |
| NXRRSet | 8 | Record that should exist does not Defined in RFC 2136. |
| NotAuthoritive | 9 | Server is not authoritative for zone Defined in RFC 2136. |
| NotZone | 10 | Name not contained in zone Defined in RFC 2136. |
| BadVersion | 16 | EDNS version is not supported by responder |
| BadSig | 16 | TSIG signature failure Defined in RFC 2845. |
| BadKey | 17 | Key not recognized Defined in RFC 2845. |
| BadTime | 18 | Signature out of time window Defined in RFC 2845. |
| BadMode | 19 | Bad TKEY mode Defined in RFC 2930. |
| BadName | 20 | Duplicate key name Defined in RFC 2930. |
| BadAlg | 21 | Algorithm not supported Defined in RFC 2930. |
| BadTrunc | 22 | Bad truncation of TSIG record Defined in RFC 4635. |
| BadCookie | 23 | Bad/missing server cookie Defined in draft-ietf-dnsop-cookies |