# Install dnstwist on Windows, macOS and Linux

Generate look-alike domains and find the ones registered for phishing or typosquatting.

dnstwist generates the domain names someone might register to imitate yours, using typos, swapped letters, look-alike characters and other top-level domains, then checks which ones exist. It is the standard tool for finding phishing and typosquatting domains.

## How to install dnstwist

```
ot install dnstwist
```

ot installs dnstwist 20250130 with uv into a Python environment of its own under `~/.ot`, so it cannot conflict with your system Python or with any other tool.

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 dnstwist

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

Show only the look-alike domains that are registered.

```
ot run dnstwist --registered example.com
```

Also check for mail servers, and write CSV.

```
ot run dnstwist -r -m -f csv example.com
```

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

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

## Run dnstwist with other tools

`ot scan domain example.com --tools subfinder,theharvester,dnstwist` runs dnstwist together with subfinder and theharvester and merges what they find into one table, listing each finding once.

## dnstwist licence, platforms and versions

- Project: https://github.com/elceef/dnstwist
- Licence: Apache-2.0
- Runs on: Windows, macOS and Linux
- Takes: domain
- Categories: domain, phishing, brand
- Sends traffic to the target: no
- Python package: dnstwist 20250130, in its own isolated environment

## Questions about dnstwist

### How do I install dnstwist on Windows?

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

### Is dnstwist free?

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

### Do I need to set up Python to use dnstwist?

No. ot installs dnstwist with uv into a virtual environment of its own, separate from your system Python. If uv is not installed, ot fetches its own copy first.

### How do I update or remove dnstwist?

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

## Tools related to dnstwist

- [alterx](https://otinstaller.com/tools/alterx/): Generate likely subdomain names from known ones using patterns.
- [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.
- [chaos](https://otinstaller.com/tools/chaos/): Query the ProjectDiscovery Chaos dataset of known subdomains.
- [checkdmarc](https://otinstaller.com/tools/checkdmarc/): Check a domain for SPF, DMARC, DNSSEC and mail server configuration.
- [dnsx](https://otinstaller.com/tools/dnsx/): Fast DNS toolkit for resolving and probing large lists of hostnames.

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