MassDNS is a high—performance, open-source DNS resolver designed for mass domain name resolution. Designed to work with large amounts of data, it allows you to check millions of domains in a short time.Key features of MassDNS
- High performance – MassDNS can send and process tens of thousands of requests per second thanks to asynchronous I/O.
- Support for custom resolvers – allows you to use third-party DNS servers to process requests.
- Flexible configuration – supports various output formats, including JSON and text files.
- Integration with other tools – perfectly combined with subdomain matching utilities such as Subfinder and Amass.
How to use MassDNS?
Installation
You will need Git and make to install MassDNS.:
Bash:
git clone https://github.com/blechschmidt/massdns.git
cd massdns
make
Simple launch
To quickly resolve a list of domains using public DNS servers:
./massdns -r resolvers.txt -t A -o S domains.txt
Here:
• resolvers.txt – a file with a list of DNS servers,
• domains.txt – a file with a list of domains for resolving,
• -t A is an indication of the request type (A is a record),
• -o S is the output format (S is standard).
Reverse DNS Lookup
MassDNS also supports reverse IP address resolution:
Bash:
/massdns -r resolvers.txt -t PTR -o S ips.txt