GithubHelp home page GithubHelp logo

whois-servers's Introduction

@ocku/whois-servers

A whois server list compiled weekly from IANA's TLD list.

If no differences are found between the previous list and the current list, no update will be pushed.

Usage

This library provides a compiled list of whois servers for each TLD in the format {domain: server}.

import servers from '@ocku/whois-servers';
// or
const servers = require('@ocku/whois-servers');
console.log(servers.de); // whois.nic.de
console.log(servers.arpa); // whois.iana.org
console.log(servers['xn--tckwe']); // whois.nic.xn--tckwe

For any languages other than Node

All JavaScript files are generated from cache/servers.json, which contains the original domain:server map. You can download it with:

wget https://raw.githubusercontent.com/ocku/whois-servers/main/cache/servers.json

Punycode

Punycode TLDs are supported, but to keep overhead low, special Unicode characters are not automatically transcoded to LDH.

What this means is that if you want to get the server of a tld, for example ใ‚ณใƒ , you would have to reference it by its ASCII name:

servers['xn--tckwe']; // whois.nic.xn--tckwe

Staying up to date

All server updates are done by raising the patch version of the library, so you should be able to stay up to date simply by updating your dependencies every so often.

Build

In the case that you want to build this library yourself, first make sure you have the following dependencies installed:

  • yarn
  • whois
  • jq (>= v1.7)

and then do the following:

yarn # install prettier
./genenerate.sh # run the generator

And that's it! It will take a while but that's all that you need to do.

Reference

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.