dns-rcodes
v1.0.0
Published
Maps easy to remember names to DNS rcodes.
Downloads
7
Readme
dns-rcodes
Maps easy to remember names to DNS RCODE (response code) values.
Usage
var rcodes = require('dns-rcodes');
// Get the rcode for "No Error"
var noErrorCode = rcodes.NoError;
// How about if the lookup is "Refused"?
var refusedCode = rcodes.Refused;
// Doing TSIG? We got you...
var badSignatureCode = rcodes.BadSignature;
RCODEs
Below is a list of exposed RCODEs organized by RFC.
RFC1035
RCODE | Name | Description
------|------|------------
0
| NoError
| No error condition.
1
| FormatError
| The name server was unable to interpret the query.
2
| ServerFailure
| The name server was unable to process this query due to a problem with the name server.
3
| NameError
| Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.
4
| NotImplemented
| The name server does not support the requested kind of query.
5
| Refused
| The name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation.
RFC2136
RCODE | Name | Description
------|------|------------
6
| YXDomain
| Some name that ought not to exist, does exist.
7
| YXRRSet
| Some RRset that ought not to exist, does exist.
8
| NXRRSet
| Some RRset that ought to exist, does not exist.
9
| NotAuth
| The server is not authoritative for the zone named in the Zone Section.
10
| NotZone
| A name used in the Prerequisite or Update Section is not within the zone denoted by the Zone Section.
RFC6891
RCODE | Name | Description
------|------|------------
16
| BadVersion
| Requestor provided a version option not compatible with the server.
RFC2845
RCODE | Name | Description
------|------|------------
16
| BadSignature
| TSIG Signature Failure.
17
| BadKey
| Key not recognized.
18
| BadTime
| Signature out of time window.
RFC2930
RCODE | Name | Description
------|------|------------
19
| BadMode
| Incorrect TKEY mode.
20
| BadName
| Duplicate TKEY name.
21
| BadAlgorithm
| Algorithm not supported.
RFC4635
RCODE | Name | Description
------|------|------------
22
| BadTruncation
| Bad truncation.