LinuxCommandLibrary

massdns

TLDR

Resolve domains from file

$ massdns -r [resolvers.txt] -t A [domains.txt]
copy
Output to file
$ massdns -r [resolvers.txt] -t A -o S [domains.txt] > [results.txt]
copy
Concurrent queries
$ massdns -r [resolvers.txt] -s [10000] [domains.txt]
copy
Query specific record type
$ massdns -r [resolvers.txt] -t [MX] [domains.txt]
copy
Simple output format
$ massdns -r [resolvers.txt] -t A -o S [domains.txt]
copy

SYNOPSIS

massdns [options] domainlist

DESCRIPTION

massdns is a high-performance DNS stub resolver for bulk lookups. It can resolve millions of domains per hour using multiple resolvers in parallel.
The tool is designed for subdomain enumeration and DNS reconnaissance during authorized security assessments. It handles resolver rotation and error recovery automatically.

PARAMETERS

-r file

Resolver list file.
-t type
Query type (A, AAAA, MX, NS, etc.).
-o format
Output format (S=simple, F=full, J=JSON).
-s rate
Queries per second.
-w file
Write output to file.
-c num
Concurrent queries.
--root
Allow binding to privileged ports.
-q
Quiet mode.

CAVEATS

Requires good resolver list. High rates may trigger rate limiting. Resolver reliability varies. Only for authorized testing.

HISTORY

massdns was created by B. Blechschmidt for high-speed DNS resolution needs in security research. It fills the gap between single-query tools and the need to resolve millions of domains efficiently.

SEE ALSO

dig(1), host(1), subfinder(1), dnsx(1)

Copied to clipboard