# DNSRecon

> Python DNS enumeration script: zone transfer checks, record enumeration, subdomain brute force and reverse lookups.

Source: https://osinttools.io/tools/dnsrecon/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain, IP address
- **Category:** Infrastructure and domains
- **Pricing:** Free, open source
- **Footprint:** active (contacts the target or the services it checks)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI · local REST API
- **Website:** https://github.com/darkoperator/dnsrecon
- **GitHub:** darkoperator/dnsrecon, 3,097 stars · Python · GPL-2.0 · last commit 2026-11-24
- **Listed:** Nov 26
- **Last verified by an editor:** Nov 26, 2026

## What it does

DNSRecon is a long-running Python tool by Carlos Perez for pulling as much as possible out of DNS. It checks every name server of a domain for zone transfers, enumerates the common record types (MX, SOA, NS, A, AAAA, SPF, TXT) and SRV records, expands a name across top-level domains, detects wildcard resolution and brute-forces host names from a wordlist.

Investigators use it to map the hosts and mail infrastructure behind a domain and to run PTR lookups across an IP range or CIDR block. It can optionally expand netblocks found in SPF and WHOIS data through Shodan, and it ships a small local REST API for scripted use.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. No account is needed. There is no public API.

## Features

- Zone transfer checks on all name servers
- Standard and SRV record enumeration
- Subdomain brute force from wordlists
- Wildcard detection
- Reverse PTR lookups over IP ranges
- Optional Shodan netblock expansion
- Local REST API

## Pros

- Actively maintained with frequent commits
- Covers most DNS recon steps in one tool
- Free and open source (GPL-2.0)
- Packaged by many Linux distributions

## Cons

- Brute force and zone transfer attempts query the target's name servers directly
- Needs Python 3.12 or later
- Command-line only

## When to use it

- Use it when you want a full DNS picture of a domain, including any name server that still allows zone transfers.
- Use it when you need reverse DNS names for every address in a netblock tied to a target.

## Quick start

Install with uv:

```
git clone https://github.com/darkoperator/dnsrecon.git
cd dnsrecon
uv sync
uv run dnsrecon
```

## Alternatives

- [Shodan](https://osinttools.io/tools/shodan/): Search engine for internet-connected hosts, indexing open ports, service banners and TLS certificates by IP. (Freemium · IP address, Domain · passive)
- [Censys](https://osinttools.io/tools/censys/): Internet-wide scan data for hosts, services and certificates, searchable through the Censys Platform. (Freemium · IP address, Domain · passive)
- [Domain Digger](https://osinttools.io/tools/domain-digger/): Web app for DNS records, global DNS lookups, WHOIS, IP details and certificate history of a domain. (Open source · Domain, IP address · passive · 1,561 GitHub stars)
- [DomainKits](https://osinttools.io/tools/domainkits/): Domain data service whose hosted MCP server offers about 30 tools for WHOIS, DNS, newly registered domains, reverse NS and typosquats. (Freemium · Domain, IP address · passive)
- [DomainTools Whois Lookup](https://osinttools.io/tools/domaintools-whois/): Free WHOIS lookup for domains and IPs from DomainTools, with paid history and reverse WHOIS behind it. (Freemium · Domain, IP address · passive)
- [FOFA](https://osinttools.io/tools/fofa/): Chinese cyberspace mapping engine for finding hosts and web assets by banner, certificate, title or favicon. (Freemium · IP address, Domain · passive)

All alternatives to DNSRecon in one table: https://osinttools.io/tools/dnsrecon/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
