New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dns-rcodes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dns-rcodes

Maps easy to remember names to DNS rcodes.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 06 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc