Skip to content

noah227/fetch-domain-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch Domain Ip

Response ips of given domains

Usage

For instance:

server config as

[http]
host = 127.0.0.1
port = 8082

host-list.txt(optional) as

github.com

start the server ...

request like http://127.0.0.1:8082

response will be like

[
    ["github.com", "20.205.243.166"]
]

params supported

  • plain: Return plain text content, so you can paste it to host file conveniently
  • urls: Joined with comma, specific urls to fetch

request like http://127.0.0.1:8082?plain=1

response will be like

20.205.243.166 github.com

request like http://127.0.0.1:8082?urls=github.com,gist.github.com&plain=1

response will be like

20.205.243.166 github.com
8.7.198.45 gist.github.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published