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.
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.