whois-servers-list
TypeScript icon, indicating that this package has built-in type declarations

2024.4.30 • Public • Published

WHOIS Server List

An Enhanced WHOIS Server List Based on the IANA Root Zone Database

Last updated: 2024-04-30

Usage

Use the list directly

JSON / TXT

JavaScript / TypeScript

Install the package with NPM or Yarn:

npm i whois-servers-list
# or
yarn add whois-servers-list

(Optional) To ensure that you are using the latest list, you can modify your package.json:

{
  ...
  "dependencies": {
    ...
    "whois-servers-list": "latest"
  },
  ...

Then you can use the list like this:

const servers = require('whois-servers-list');

const server = servers['com'];  // whois.verisign-grs.com

or TypeScript:

import servers from 'whois-servers-list';

const server: string | null = servers['com'];  // whois.verisign-grs.com

PHP

Add the package with Composer:

composer require woomai/whois-servers:dev-master

Then you can use the list like this:

$servers = json_decode(file_get_contents('vendor/woomai/whois-servers/list.json'), true);
$server = $servers['com'];  // whois.verisign-grs.com

Contributing

If this list is outdated or missing servers, please feel free to open an issue or create pull request!

License

The Unlicense

Readme

Keywords

none

Package Sidebar

Install

npm i whois-servers-list

Weekly Downloads

6

Version

2024.4.30

License

Unlicense

Unpacked Size

87.8 kB

Total Files

7

Last publish

Collaborators

  • woomai