OSINT tools · Subdomains and DNS
Subdomain enumeration and DNS tools
Mapping a domain starts with its subdomains: every name is a host, a service or a forgotten test system. Most of the tools here are passive, which means they read certificate transparency logs, DNS datasets and search engines, and never contact the target.
The rest generate candidate names and resolve them, which does send DNS queries. Those are marked as active on their own pages.
Scan a domain with subfinder and theharvester
ot scan domain example.comThis runs subfinder and theharvester at the same time and lists each finding once, with the tools that reported it. Tools that are not installed yet are offered for installation first.
13 subdomain enumeration and DNS tools compared
| Tool | What it does | Runs on | Kind |
|---|---|---|---|
| subfinder | Fast passive subdomain enumeration from dozens of public sources | Windows, macOS, Linux | passive |
| amass | In-depth attack surface mapping and subdomain discovery from many data sources | Windows, macOS, Linux | passive |
| findomain | Fast subdomain enumeration from certificate transparency logs and APIs | Windows, macOS, Linux | passive |
| chaos | Query the ProjectDiscovery Chaos dataset of known subdomains | Windows, macOS, Linux | passive |
| sublist3r | Enumerate subdomains using search engines and public DNS datasets | Windows, macOS, Linux | passive |
| knockpy | Enumerate subdomains by passive lookup and wordlist, with HTTP and TLS checks | Windows, macOS, Linux | passive |
| theharvester | Collect emails, subdomains, hosts and employee names for a domain from public sources | Windows, macOS, Linux | passive |
| alterx | Generate likely subdomain names from known ones using patterns | Windows, macOS, Linux | passive |
| gobuster | Brute-force DNS subdomains, virtual hosts, web paths and cloud buckets | Windows, macOS, Linux | active |
| fierce | DNS reconnaissance for locating hosts and non-contiguous IP space of a domain | Windows, macOS, Linux | active |
| dnsx | Fast DNS toolkit for resolving and probing large lists of hostnames | Windows, macOS, Linux | passive |
| dnstwist | Generate look-alike domains and find the ones registered for phishing or typosquatting | Windows, macOS, Linux | passive |
| bbot | Recursive OSINT automation: subdomains, emails, web and cloud findings in one run | macOS, Linux | active |
Install a few of them at once:
ot install subfinder amass findomainThese are the command-line tools. For websites and search engines that do the same job, see OSINT Framework and how ot fits with it. New to the field? What is OSINT? covers the method and its legal limits, and OSINT with AI agents shows how an agent can run these tools for you.
Which subdomain enumeration and DNS tool should you use?
- subfinder is the usual starting point: fast, passive and useful without any API keys. findomain and amass draw on other sources, so their results add to it rather than repeat it.
- alterx turns the names you already have into likely variations, and gobuster or fierce test names from a wordlist.
- dnsx resolves a long list of names and keeps the ones that exist, which is the step between finding names and probing them.
- dnstwist works on a different problem: it generates look-alike domains and reports which are registered, to catch phishing and typosquatting.
- bbot runs the whole process recursively in one command. It is not available on Windows.
Questions about subdomain enumeration and DNS tools
What is the difference between passive and active enumeration?
Passive tools ask third parties what they already know about a domain, so the target sees nothing. Active tools send DNS queries or HTTP requests towards the target's own systems, which needs the owner's permission.
Do I need API keys?
No, but they help. subfinder, amass and theHarvester query more sources when given keys. Store one with ot keys set NAME and ot passes it only to the tools that use it.
Can I pipe the tools into each other?
Yes. ot run passes standard input and output straight through, so ot run subfinder -d example.com -silent | ot run dnsx -silent works as it would with the tools installed by hand.
Install ot
curl -fsSL https://otinstaller.com/install.sh | shirm https://otinstaller.com/install.ps1 | iexRun it in PowerShell.
Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.