DNS reconnaissance — record enumeration, zone-transfer (AXFR) attempts, and passive plus active subdomain discovery with dnsx/subfinder/puredns. Tier 1. Use at the start of recon and whenever a new domain enters scope.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dns Recon?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-dns-recon)
---
name: dns-recon
description: DNS reconnaissance — record enumeration, zone-transfer (AXFR) attempts, and passive plus active subdomain discovery with dnsx/subfinder/puredns. Tier 1. Use at the start of recon and whenever a new domain enters scope.
---
# DNS Reconnaissance
DNS is the map of the attack surface: every record type leaks infrastructure, and subdomains are where the soft targets live.
## Trigger phrases
`dns recon, zone transfer, axfr, subdomain enum, dns records, dnsx, resolve subdomains, nameserver enum`
## Method
1. **Records**: `dig ANY target.com`, then per-type `A AAAA CNAME MX NS TXT SOA SRV CAA PTR`. `dnsx -l hosts -a -aaaa -cname -mx -ns -txt -soa -resp`. TXT often holds SPF/DMARC, verification tokens, internal notes.
2. **Zone transfer (AXFR)**: for each `NS`, `dig axfr target.com @ns1.target.com` (also `fierce`, `dnsrecon -d target.com -t axfr`). A successful transfer dumps the whole zone → jackpot.
3. **Passive subdomains**: `subfinder -d target.com -all`, `amass enum -passive`, `assetfinder`, crt.sh / certificate transparency, `github-subdomains`, Wayback (`gau`/`waymore`).
4. **Active subdomains**: resolve the passive set with `dnsx`; brute/permute with `puredns bruteforce dns-wordlist.txt target.com -r resolvers.txt` and `dnsgen`/`altdns` permutations; `shuffledns`.
5. **Reverse DNS & ASN**: `dnsx -ptr` over owned netblocks (`asnmap`) to find hosts by PTR.
6. **Takeover candidates**: flag dangling CNAMEs / `SERVFAIL` / NXDOMAIN-on-CNAME → hand to `subdomain-takeover`.
## Modern / rare techniques
- **NSEC/NSEC3 walking** on DNSSEC zones (`ldns-walk`, `nsec3walker`) to enumerate names without brute force.
- **CAA/SPF/MX mining** reveals mail providers, cloud vendors and third parties (SSRF/takeover leads).
- **Wildcard detection** (`puredns` auto-handles) to avoid false-positive brute hits.
## Escalation / chaining
New hosts → `recon-and-mapping`/`vhost-discovery`/`content-discovery` (new scope). Dangling records → `subdomain-takeover`. Infra/providers → `osint`, `web-ssrf`, `cloud-pentest`.
## Backend & tooling
Kali/HexStrike (dig/dnsx/subfinder/amass/puredns/shuffledns). Passive-first to stay quiet.
## Verification (background, before reporting)
Re-resolve candidate subdomains from a second resolver/vantage to filter wildcard/stale entries; re-attempt AXFR to confirm it's reproducible. Treat only resolving/reachable hosts as live scope.
## Evidence
Record dumps, AXFR output (if successful), the consolidated subdomain inventory with resolution status, and handoffs (takeover candidates, new scope). AXFR exposure is itself a finding — note remediation (restrict transfers to secondaries).