root-hints

4.0.1 • Public • Published

root-hints

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

Installation

$ npm i root-hints

Usage

const rootHints = require('root-hints');
 
rootHints('A');
// ['198.41.0.4', '192.228.79.201', ...]
 
rootHints('AAAA');
// ['2001:503:BA3E::2:30', '2001:500:84::B', ...]
 
rootHints();
// [{ A: '198.41.0.4', AAAA: '2001:503:ba3e::2:30', name: 'a.root-servers.net' }, ...]

© silverwind, distributed under BSD licence

/root-hints/

    Package Sidebar

    Install

    npm i root-hints

    Weekly Downloads

    100

    Version

    4.0.1

    License

    BSD-2-Clause

    Unpacked Size

    4.42 kB

    Total Files

    5

    Last publish

    Collaborators

    • silverwind