Skip to content

sun0day/dns-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image
A tiny nodejs cli tool to resolve host IPs and find the fastest IP

node-current

Feature

  • 🔍 resolve host IPs
  • 🚀 IP latency test
  • 🪴 super tiny, no 3rd-party dependencies
  • 🐳 cross-platform support
  • 🔨 system host IP setting(Enter)

Screenshot

dns

Install

$ npm i -g dns-detector

Usage

$ dns --host {your host} --server {DNS server} --timeout {query timeout} --tries {query retry times}

Options

option required default description
--host ✔️ host you want to resolve
--server DNS server IP to resolve host
--timeout 2000 query timeout, same as nodejs dns resolveroptions.timeout
--tries 4 query timeout, same as nodejs dns resolveroptions.tries

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