1.0.0 • Published 9 years ago

dns-rcodes v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

dns-rcodes

Build Status Dependency Status DevDependency Status

NPM

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

RCODENameDescription
0NoErrorNo error condition.
1FormatErrorThe name server was unable to interpret the query.
2ServerFailureThe name server was unable to process this query due to a problem with the name server.
3NameErrorMeaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.
4NotImplementedThe name server does not support the requested kind of query.
5RefusedThe 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

RCODENameDescription
6YXDomainSome name that ought not to exist, does exist.
7YXRRSetSome RRset that ought not to exist, does exist.
8NXRRSetSome RRset that ought to exist, does not exist.
9NotAuthThe server is not authoritative for the zone named in the Zone Section.
10NotZoneA name used in the Prerequisite or Update Section is not within the zone denoted by the Zone Section.

RFC6891

RCODENameDescription
16BadVersionRequestor provided a version option not compatible with the server.

RFC2845

RCODENameDescription
16BadSignatureTSIG Signature Failure.
17BadKeyKey not recognized.
18BadTimeSignature out of time window.

RFC2930

RCODENameDescription
19BadModeIncorrect TKEY mode.
20BadNameDuplicate TKEY name.
21BadAlgorithmAlgorithm not supported.

RFC4635

RCODENameDescription
22BadTruncationBad truncation.
1.0.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago