otinstaller · Subdomains and DNS
Install dnsx on Windows, macOS, or Linux in one command
dnsx resolves very long lists of hostnames quickly and keeps the ones that exist. It is the usual step between a subdomain finder and a web prober, and it can also test names from a wordlist.
dnsx in three lines
curl -fsSL https://otinstaller.com/install.sh | sh
ot install dnsx
ot run dnsx -l hosts.txt -cname -respOn Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.
Runs projectdiscovery/dnsx (MIT, ★ 2.9k, otinstaller 0.3.0). otinstaller installs it as a release binary, pinned to version 1.3.1; it does not change or audit the tool itself.
What dnsx is for
- Keeping only the hostnames that resolve from a long candidate list.
- Reading A, CNAME, and other records for many hosts at once.
- Testing names from a wordlist against a domain.
Run dnsx with ot
ot run dnsx passes everything after the tool's name to dnsx unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.
- Resolve what subfinder found and show the addresses.
ot run subfinder -d example.com -silent | ot run dnsx -silent -a -resp- Show the CNAME record of every host in a file.
ot run dnsx -l hosts.txt -cname -resp- Test names from a wordlist.
ot run dnsx -d example.com -w words.txt -silent
Where the results go
ot run saves nothing itself: dnsx's output goes to your terminal, a pipe, or wherever its own output option writes it. Results can hold personal data, so store and share them accordingly.
Before you run it
- It sends DNS queries through public resolvers, not to the target's hosts, but brute forcing a wordlist is noticeable to the domain's DNS operator.
Update, remove, inspect
ot info dnsx # details, and how it installs on this system
ot update dnsx # move to the version the registry pins
ot update dnsx --latest # take the newest upstream release instead
ot remove dnsx # remove itFull reference: the otinstaller docs, dnsx on otinstaller.com, and the tool's own project page.
Pairs with
FAQ
dnsx with otinstaller, answered
How do I install dnsx on Windows, macOS, or Linux?
Install ot once with the one-line script on the otinstaller page, then run ot install dnsx. Ot downloads the project's release binary for your system and checks its SHA-256 hash before it installs anything, at version 1.3.1. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.
How do I run dnsx through ot?
With ot run dnsx followed by dnsx's own arguments, for example: ot run dnsx -l hosts.txt -cname -resp. 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 dnsx part of ot scan?
No. ot scan takes a username, an email address, a domain, or a phone number and runs the tools the registry assigns to that kind of target. Run dnsx on its own with ot run dnsx.
Does dnsx need an API key or a login?
ot stores no key for it. The basic run needs neither a key nor a login.
Does dnsx send traffic to the target?
The registry lists dnsx 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".