# Install whois on Windows, macOS and Linux

Look up the registration record of a domain or IP address.

whois looks up the registration record of a domain or an IP address: the registrar, the registration and expiry dates, the name servers and, where it is not hidden for privacy, the registrant.

## How to install whois

```
ot install whois
```

ot uses whois from your system's package manager. If it is not installed yet, ot shows the `winget`, `brew` or `apt` command and asks before running it.

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 whois

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

Show the registration record of a domain.

```
ot run whois example.com
```

Show who an IP address is allocated to.

```
ot run whois 8.8.8.8
```

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

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

## whois licence, platforms and versions

- Project: https://github.com/rfc1036/whois
- Licence: GPL-2.0
- Runs on: Windows, macOS and Linux
- Takes: domain, ip
- Categories: domain, ip, registration
- Sends traffic to the target: no
- System package: through apk, apt, brew, choco, dnf, pacman, scoop and winget

## Questions about whois

### How do I install whois on Windows?

Open PowerShell and install ot with `irm https://otinstaller.com/install.ps1 | iex`. Then run `ot install whois`. ot installs whois through winget, Scoop or Chocolatey, after showing you the command.

### Is whois free?

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

### How do I update or remove whois?

whois is a system package, so update and uninstall it with your package manager. `ot remove whois` only makes ot forget it and never uninstalls a system package.

## Tools related to whois

- [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.
- [dnstwist](https://otinstaller.com/tools/dnstwist/): Generate look-alike domains and find the ones registered for phishing or typosquatting.

More: [Networks and hosts](https://otinstaller.com/osint-tools/networks/).
