https://github.com/silverwind/root-hints
Provides IP addresses of the DNS root server, aka root hints
https://github.com/silverwind/root-hints
dns javascript root-hints
Last synced: 23 days ago
JSON representation
Provides IP addresses of the DNS root server, aka root hints
- Host: GitHub
- URL: https://github.com/silverwind/root-hints
- Owner: silverwind
- License: bsd-2-clause
- Created: 2014-09-26T15:47:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T14:26:08.000Z (almost 5 years ago)
- Last Synced: 2025-04-19T15:35:46.956Z (about 1 year ago)
- Topics: dns, javascript, root-hints
- Language: JavaScript
- Size: 133 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# root-hints
[](https://www.npmjs.org/package/root-hints) [](https://www.npmjs.org/package/root-hints) [](https://packagephobia.com/result?p=root-hints)
> Provides IP addresses of the DNS root servers, also known as root hints.
## Installation
```sh
$ npm i root-hints
```
## Usage
```js
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](https://github.com/silverwind), distributed under BSD licence