Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corny/dnsresolver
Bulk DNS resolver in Go
https://github.com/corny/dnsresolver
Last synced: about 2 months ago
JSON representation
Bulk DNS resolver in Go
- Host: GitHub
- URL: https://github.com/corny/dnsresolver
- Owner: corny
- Created: 2015-02-18T22:56:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-03T07:36:56.000Z (over 7 years ago)
- Last Synced: 2024-10-12T19:52:28.241Z (3 months ago)
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DNS Resolver
============This is a bulk DNS resolver written in Go.
It is based on [miekg/dns](https://github.com/miekg/dns).## Usage
```
dnsresolver [options] TYPEOptions:
-server="8.8.8.8": The resolver to ask
-timeout=5: Timeout for a query in seconds
-workers=32: Number of worker routines
-append-dot=true: Append missing dot to domainsType can be A, AAAA, MX
```### Example
```
$ echo "example.com\ngoogle.de" | dnsresolver A AAAA
2015/02/23 03:32:27 Query for A records
2015/02/23 03:32:27 Query for AAAA records
2015/02/23 03:32:27 Using 8 threads
2015/02/23 03:32:27 Starting 32 workers
{"domain":"example.com.","results":["93.184.216.34","2606:2800:220:1:248:1893:25c8:1946"],"duration":60,"error":""}
{"domain":"google.com.","results":["173.194.113.161","173.194.113.166","173.194.113.165","173.194.113.167","173.194.113.163","173.194.113.164","173.194.113.174","173.194.113.169","173.194.113.162","173.194.113.168","173.194.113.160","2a00:1450:4005:809::1001"],"duration":87,"error":""}
```