JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 114
  • Score
    100M100P100Q106017F
  • License BSD-2-Clause

Provides IP addresses of the DNS root servers, also known as 'root hints'.

Package Exports

  • root-hints

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (root-hints) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

root-hints NPM version

Provides IP addresses of the DNS root servers, also known as 'root hints'.

Installation

npm install --save root-hints

Usage

var hints = require('root-hints');

console.log(hints('A'));
//=> ['198.41.0.4', '192.228.79.201', ...]

console.log(hints('AAAA'));
//=> ['2001:503:BA3E::2:30', '2001:500:84::B', ...]

console.log(hints());
//=> [{ A: '198.41.0.4', AAAA: '2001:503:ba3e::2:30', name: 'a.root-servers.net' }, ...]

© 2014-2015 silverwind, distributed under BSD licence