GithubHelp home page GithubHelp logo

silverwind / root-hints Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 2.0 136 KB

Provides IP addresses of the DNS root server, aka root hints

License: BSD 2-Clause "Simplified" License

JavaScript 81.85% Makefile 18.15%
dns root-hints javascript

root-hints's Introduction

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's People

Contributors

silverwind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

root-hints's Issues

Add a way to retrieve the name of the root servers

The source defines a root server like this:

.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
A.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:BA3E::2:30

It would be a nice addition to return an object containing properies like this:

"A.ROOT-SERVERS.NET" : { "A": "198.41.0.4", "AAAA": "2001:503:BA3E::2:30" }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.