OSINTverse

otinstaller · Subdomains and DNS

Install subfinder on Windows, macOS, or Linux in one command

subfinder finds the subdomains of a domain by asking dozens of public sources, such as certificate transparency logs and DNS datasets. It is passive, fast and useful without any API keys, which makes it the usual first step in mapping a domain.

subfinder in three lines

curl -fsSL https://otinstaller.com/install.sh | sh
ot install subfinder
ot run subfinder -d example.com -silent

On Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.

Runs projectdiscovery/subfinder (MIT, ★ 15k, otinstaller 0.3.0). otinstaller installs it as a release binary, pinned to version 2.17.0; it does not change or audit the tool itself.

What subfinder is for

  • The usual first step in mapping a domain: a passive subdomain list.
  • Feeding hosts to httpx or dnsx in a pipeline.
  • The domain step of a merged scan: ot scan domain example.com.

Run subfinder with ot

ot run subfinder passes everything after the tool's name to subfinder unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.

Print the subdomains, one per line.
ot run subfinder -d example.com -silent
Use every source, which is slower, and save the result.
ot run subfinder -d example.com -all -o subdomains.txt
Print JSON, including the source of each name.
ot run subfinder -d example.com -oJ

Run it with the other domain tools and merge what they find into one list: ot scan domain example.com

Keys it reads: PDCP_API_KEY. Store each with ot keys set NAME.

Where the results go

ot run saves nothing itself: subfinder's output goes to your terminal, a pipe, or wherever its own output option writes it. A scan is different. ot scan domain example.com prints one merged report, saves it into a case with --case <name>, and writes it to an HTML, JSON, or CSV file with -o. Cases stay on your machine, under ~/.ot/cases.

Before you run it

  • Works without keys. More sources answer with keys of your own in subfinder's provider config.
  • It lists names public sources know. A name can be listed and no longer resolve.

Update, remove, inspect

ot info subfinder              # details, and how it installs on this system
ot update subfinder            # move to the version the registry pins
ot update subfinder --latest   # take the newest upstream release instead
ot remove subfinder            # remove it

Full reference: the otinstaller docs, subfinder on otinstaller.com, and the tool's own project page.

Pairs with

httpx takes a list of hosts and reports which of them run a web server, with the status code, page title, server software and detected technologies.
dnsx resolves very long lists of hostnames quickly and keeps the ones that exist.
Amass is the OWASP project for mapping an organisation's external attack surface.

When open-source isn't enough

subfinder lists the names public sources know today. SearchIn's DNS providers return each host's current and historical records.

Domain intelligence
Domain intelligence

FAQ

subfinder with otinstaller, answered

How do I install subfinder on Windows, macOS, or Linux?

Install ot once with the one-line script on the otinstaller page, then run ot install subfinder. Ot downloads the project's release binary for your system and checks its SHA-256 hash before it installs anything, at version 2.17.0. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.

How do I run subfinder through ot?

With ot run subfinder followed by subfinder's own arguments, for example: ot run subfinder -d example.com -silent. ot passes everything after the tool's name straight through and exits with the tool's exit code, so the project's own documentation applies unchanged. Add ~/.ot/bin to your PATH to call the tool by its own name.

Is subfinder part of ot scan?

Yes. ot scan domain example.com runs subfinder with theHarvester at the same time, lists every finding once with the tools that reported it, and puts findings confirmed by more than one tool first.

Does subfinder need an API key or a login?

It reads PDCP_API_KEY. Store each one with ot keys set NAME, which asks for the value without showing it; ot passes a key only to the tools that declare it. Works without keys. More sources answer with keys of your own in subfinder's provider config.

Does subfinder send traffic to the target?

The registry lists subfinder as passive: it does not probe the target's own systems. Options that do contact the target, where the tool has them, are named under "Before you run it".

Does subfinder touch the target domain?

No. It asks third-party sources such as certificate transparency logs and DNS datasets, so the domain's own servers see nothing from you. Resolving or probing the names afterwards, with dnsx or httpx, is what reaches the target.