# Install dnsx on Windows, macOS and Linux

Fast DNS toolkit for resolving and probing large lists of hostnames.

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.

## How to install dnsx

```
ot install dnsx
```

ot downloads dnsx 1.3.1 as a prebuilt binary from [github.com/projectdiscovery/dnsx](https://github.com/projectdiscovery/dnsx/releases) and verifies its SHA-256 checksum before installing it. Nothing has to be compiled.

If you do not have ot yet:

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.

## How to use dnsx

Arguments after the tool's name go straight to dnsx.

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
```

`ot run dnsx --help` lists every option.

An AI agent can run dnsx too: `ot mcp` serves it over the Model Context Protocol. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## dnsx licence, platforms and versions

- Project: https://github.com/projectdiscovery/dnsx
- Licence: MIT
- Runs on: Windows, macOS and Linux
- Takes: domain
- Categories: domain, dns, recon
- Sends traffic to the target: no
- Release binary: version 1.3.1 from github.com/projectdiscovery/dnsx, verified by SHA-256

## Questions about dnsx

### How do I install dnsx on Windows?

Open PowerShell and install ot with `irm https://otinstaller.com/install.ps1 | iex`. Then run `ot install dnsx`. ot fetches a pinned version of dnsx and keeps it under `~/.ot`, apart from the rest of your system.

### Is dnsx free?

Yes. dnsx is open source, released under the MIT licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need Go or a compiler to install dnsx?

No. ot downloads the prebuilt dnsx binary for your platform and checks its SHA-256 checksum. A mismatch installs nothing.

### How do I update or remove dnsx?

`ot update dnsx` moves it to the version pinned in ot's registry, and `ot update dnsx --latest` to the newest upstream release. `ot remove dnsx` uninstalls it.

## Tools related to dnsx

- [fierce](https://otinstaller.com/tools/fierce/): DNS reconnaissance for locating hosts and non-contiguous IP space of a domain.
- [amass](https://otinstaller.com/tools/amass/): In-depth attack surface mapping and subdomain discovery from many data sources.
- [bbot](https://otinstaller.com/tools/bbot/): Recursive OSINT automation: subdomains, emails, web and cloud findings in one run.
- [checkdmarc](https://otinstaller.com/tools/checkdmarc/): Check a domain for SPF, DMARC, DNSSEC and mail server configuration.
- [httpx](https://otinstaller.com/tools/httpx/): Probe lists of hosts for live web servers, titles, status codes and technologies.
- [subfinder](https://otinstaller.com/tools/subfinder/): Fast passive subdomain enumeration from dozens of public sources.

More: [Subdomains and DNS](https://otinstaller.com/osint-tools/subdomains/).
