Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sun0day/dns-detector
A nodejs cli tool to resolve host's IPs
https://github.com/sun0day/dns-detector
cli dns ip nodejs ping
Last synced: about 14 hours ago
JSON representation
A nodejs cli tool to resolve host's IPs
- Host: GitHub
- URL: https://github.com/sun0day/dns-detector
- Owner: sun0day
- License: mit
- Created: 2023-01-11T08:52:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T03:25:51.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T11:06:59.763Z (9 days ago)
- Topics: cli, dns, ip, nodejs, ping
- Language: JavaScript
- Homepage:
- Size: 47.9 KB
- Stars: 215
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A tiny nodejs cli tool to resolve host IPs and find the fastest IP
## Feature
- :mag: resolve host IPs
- :rocket: IP latency test
- :potted_plant: super tiny, no 3rd-party dependencies
- :whale: cross-platform support
- :hammer: system host IP setting(←→Enter)## Screenshot
![dns](https://user-images.githubusercontent.com/102238922/220001043-b5584e16-c43b-49e3-a9ae-55200b61d043.gif)
## Install
```shell
$ npm i -g dns-detector
```## Usage
```shell
$ dns --host {your host} --server {DNS server} --timeout {query timeout} --tries {query retry times}
```## Options
|option|required|default|description
|-----|-----|-----|------|
|--host|:heavy_check_mark:||host you want to resolve|
|--server|||DNS server IP to resolve host
|--timeout||2000|query timeout, same as [nodejs dns resolveroptions.timeout](https://nodejs.org/dist/latest-v18.x/docs/api/dns.html#resolveroptions)
|--tries||4|query timeout, same as [nodejs dns resolveroptions.tries](https://nodejs.org/dist/latest-v18.x/docs/api/dns.html#resolveroptions)## Embedded DNS Server
`dns-detector` also embeds some famous DNS servers to help resolve IP address.
- 1.1.1.1
- 8.8.8.8
- 199.85.126.10
- 208.67.222.222
- 84.200.69.80
- 8.26.56.26
- 64.6.64.6
- 192.95.54.3
- 81.218.119.11
- 114.114.114.114
- 119.29.29.29
- 223.5.5.5