Massdns
High-performance DNS resolver for bulk lookups
Recon & OSINT7 commands
#dns#resolver#high-performance#bulk
Installation
1Clone the repository
2Navigate into the directory
3Compile with make
4Verify installation
git clone https://github.com/blechschmidt/massdns.git
cd massdns
make
# Verify
./bin/massdns --helpBasic Usage
Massdns resolves thousands of domain names per second using asynchronous DNS queries
# Bulk resolve A records
./bin/massdns -r resolvers.txt -t A -w results.txt domains.txt
# Resolve AAAA records
./bin/massdns -r resolvers.txt -t AAAA -w results.txt domains.txt
# Reduce noise via output filter
./bin/massdns -r resolvers.txt -t A -o S -w results.txt domains.txt
# Use custom socket count for speed
./bin/massdns -r resolvers.txt -t A -w results.txt domains.txt -s 10000Command Reference
7 commands
1Resolvers file (one IP per line)
-r2DNS record type (A, AAAA, CNAME, MX, etc.)
-t3Output file path
-w4Number of concurrent sockets (default: 1000)
-s5Output format (S=simplified, F=full, J=JSON)
-o6Quiet mode
-q7Use sticky sockets (faster)
--stickyWhen to Use
1
Bulk DNS resolution of millions of domains2
Performance-critical resolution tasks3
Processing large subdomain wordlists4
Research and large-scale scanningNotes & Tips
1
Extremely fast — capable of millions of queries per minute2
Use with high-quality resolvers for accuracy3
Can overwhelm DNS servers — use responsibly4
Output is in a custom format by default; use -o J for JSONCommon Errors & Solutions
Too many sockets error
Reduce -s value or increase system limits: ulimit -n 65536
No valid resolvers found
Provide a resolvers list with working DNS servers; check format (one IP per line)