# 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.com
```

This runs subfinder and theharvester at the same time and lists each finding once, with the tools that reported it.

## 13 subdomain enumeration and DNS tools compared

| Tool | What it does | Runs on | Kind |
|---|---|---|---|
| [subfinder](https://otinstaller.com/tools/subfinder/) | Fast passive subdomain enumeration from dozens of public sources | Windows, macOS, Linux | passive |
| [amass](https://otinstaller.com/tools/amass/) | In-depth attack surface mapping and subdomain discovery from many data sources | Windows, macOS, Linux | passive |
| [findomain](https://otinstaller.com/tools/findomain/) | Fast subdomain enumeration from certificate transparency logs and APIs | Windows, macOS, Linux | passive |
| [chaos](https://otinstaller.com/tools/chaos/) | Query the ProjectDiscovery Chaos dataset of known subdomains | Windows, macOS, Linux | passive |
| [sublist3r](https://otinstaller.com/tools/sublist3r/) | Enumerate subdomains using search engines and public DNS datasets | Windows, macOS, Linux | passive |
| [knockpy](https://otinstaller.com/tools/knockpy/) | Enumerate subdomains by passive lookup and wordlist, with HTTP and TLS checks | Windows, macOS, Linux | passive |
| [theharvester](https://otinstaller.com/tools/theharvester/) | Collect emails, subdomains, hosts and employee names for a domain from public sources | Windows, macOS, Linux | passive |
| [alterx](https://otinstaller.com/tools/alterx/) | Generate likely subdomain names from known ones using patterns | Windows, macOS, Linux | passive |
| [gobuster](https://otinstaller.com/tools/gobuster/) | Brute-force DNS subdomains, virtual hosts, web paths and cloud buckets | Windows, macOS, Linux | active |
| [fierce](https://otinstaller.com/tools/fierce/) | DNS reconnaissance for locating hosts and non-contiguous IP space of a domain | Windows, macOS, Linux | active |
| [dnsx](https://otinstaller.com/tools/dnsx/) | Fast DNS toolkit for resolving and probing large lists of hostnames | Windows, macOS, Linux | passive |
| [dnstwist](https://otinstaller.com/tools/dnstwist/) | Generate look-alike domains and find the ones registered for phishing or typosquatting | Windows, macOS, Linux | passive |
| [bbot](https://otinstaller.com/tools/bbot/) | Recursive OSINT automation: subdomains, emails, web and cloud findings in one run | macOS, Linux | active |

```
ot install subfinder amass findomain
```

These are the command-line tools. For websites and search engines that do the same job, see [OSINT Framework and how ot fits with it](https://otinstaller.com/osint-framework/). New to the field? [What is OSINT?](https://otinstaller.com/what-is-osint/) covers the method and its legal limits, and [OSINT with AI agents](https://otinstaller.com/mcp/) 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

macOS and Linux:

```
curl -fsSL https://otinstaller.com/install.sh | sh
```

Windows (PowerShell):

```
irm https://otinstaller.com/install.ps1 | iex
```

Current version: 0.3.0. Both scripts verify the download against its [SHA-256 checksum](https://otinstaller.com/releases/v0.3.0/checksums.txt) before installing.
