Skip to content

MassDNS

High-performance bulk DNS resolution

Description

MassDNS is a simple high-performance DNS stub resolver targeting those who seek to resolve a massive amount of domain names in the order of millions. It works best when paired with tools like ShuffleDNS for wildcard filtering.

Installation

BASH
git clone https://github.com/blechschmidt/massdns.git
cd massdns
make
sudo make install

Basic Usage

BASH
# Bulk resolve A records
massdns -r resolvers.txt -t A -o S subs.txt > results.txt

# Simple output format
massdns -r resolvers.txt -t A -o S -w output.txt subs.txt

Advanced Usage

BASH
# Query specific record types
massdns -r resolvers.txt -t AAAA -o S subs.txt
massdns -r resolvers.txt -t CNAME -o S subs.txt

# JSON output
massdns -r resolvers.txt -t A -o J subs.txt > results.json

# Set concurrent lookups
massdns -r resolvers.txt -t A -o S -s 10000 subs.txt

Common Workflows

BASH
# Generate wordlist and resolve
cat wordlist.txt | sed "s/$/.target.com/" | massdns -r resolvers.txt -t A -o S > results.txt