{"id":13814479,"url":"https://github.com/sun0day/dns-detector","last_synced_at":"2025-04-09T14:06:34.013Z","repository":{"id":65302289,"uuid":"587648783","full_name":"sun0day/dns-detector","owner":"sun0day","description":"A nodejs cli tool to resolve host's IPs","archived":false,"fork":false,"pushed_at":"2023-02-20T03:25:51.000Z","size":49,"stargazers_count":216,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T13:03:06.884Z","etag":null,"topics":["cli","dns","ip","nodejs","ping"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sun0day.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-01-11T08:52:40.000Z","updated_at":"2025-02-18T05:37:56.000Z","dependencies_parsed_at":"2024-01-13T17:57:39.836Z","dependency_job_id":"77c0dd43-c21a-4c4a-9804-df243c217cb5","html_url":"https://github.com/sun0day/dns-detector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sun0day%2Fdns-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sun0day%2Fdns-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sun0day%2Fdns-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sun0day%2Fdns-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sun0day","download_url":"https://codeload.github.com/sun0day/dns-detector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054227,"owners_count":21039952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","dns","ip","nodejs","ping"],"created_at":"2024-08-04T04:02:00.346Z","updated_at":"2025-04-09T14:06:33.991Z","avatar_url":"https://github.com/sun0day.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n  \u003cimg width=\"364\" alt=\"image\" src=\"https://user-images.githubusercontent.com/102238922/212551667-435005a1-a9bb-4dab-80e0-47fb832854ad.png\"\u003e\n\n  \u003cbr\u003e\n    A tiny nodejs cli tool to resolve host IPs and find the fastest IP\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/dns-detector\"\u003e\n  \u003cimg alt=\"node-current\" src=\"https://img.shields.io/node/v/dns-detector\"\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/dns-detector?label=minzip\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-darwin%7Clinux%7Cwin32-black\" /\u003e\n  \n\n\n\u003c/p\u003e\n\n## Feature\n\n- :mag: resolve host IPs \n- :rocket: IP latency test\n- :potted_plant: super tiny, no 3rd-party dependencies\n- :whale: cross-platform support\n- :hammer: system host IP setting(\u003ckbd\u003e\u0026larr;\u003c/kbd\u003e\u003ckbd\u003e\u0026rarr;\u003c/kbd\u003e\u003ckbd\u003eEnter\u003c/kbd\u003e)\n\n\n## Screenshot\n\n\n![dns](https://user-images.githubusercontent.com/102238922/220001043-b5584e16-c43b-49e3-a9ae-55200b61d043.gif)\n\n\n\n\n## Install\n\n```shell\n$ npm i -g dns-detector\n```\n\n## Usage\n\n```shell\n$ dns --host {your host} --server {DNS server} --timeout {query timeout} --tries {query retry times}\n```\n\n## Options\n\n|option|required|default|description\n|-----|-----|-----|------|\n|--host|:heavy_check_mark:||host you want to resolve|\n|--server|||DNS server IP to resolve host\n|--timeout||2000|query timeout, same as [nodejs dns resolveroptions.timeout](https://nodejs.org/dist/latest-v18.x/docs/api/dns.html#resolveroptions)\n|--tries||4|query timeout, same as [nodejs dns resolveroptions.tries](https://nodejs.org/dist/latest-v18.x/docs/api/dns.html#resolveroptions)\n\n## Embedded DNS Server\n\n`dns-detector` also embeds some famous DNS servers to help resolve IP address.\n\n- 1.1.1.1\n- 8.8.8.8\n- 199.85.126.10\n- 208.67.222.222\n- 84.200.69.80\n- 8.26.56.26\n- 64.6.64.6\n- 192.95.54.3\n- 81.218.119.11\n- 114.114.114.114\n- 119.29.29.29\n- 223.5.5.5\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsun0day%2Fdns-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsun0day%2Fdns-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsun0day%2Fdns-detector/lists"}