performing-dns-enumeration-and-zone-transfer

Enumerates DNS records, attempts zone transfers, and brute-forces subdomains during authorized reconnaissance.

Updated May 27, 2026
One-click install
npx skills add https://github.com/baljinnyamday/autonomous-red-team-agent --skill performing-dns-enumeration-and-zone-transfer-baljinnyamday
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-dns-enumeration-and-zone-transfer
Source: https://github.com/baljinnyamday/autonomous-red-team-agent/tree/main/harness/src/agent_redteam/skill_library/performing-dns-enumeration-and-zone-transfer
Command: npx skills add https://github.com/baljinnyamday/autonomous-red-team-agent --skill performing-dns-enumeration-and-zone-transfer-baljinnyamday

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? During authorized penetration tests, security consultants need to map a target organization's external attack surface, but DNS information is scattered across record types, nameservers, and passive data sources. This Skill provides a structured workflow to enumerate DNS records, test for zone transfer misconfigurations, and discover subdomains systematically. ## Core Features & Use Cases - Zone Transfer Testing: Attempts AXFR/IXFR transfers against authoritative nameservers to detect misconfigurations that leak entire zone files. - Subdomain Discovery: Combines passive sources (subfinder, amass, certificate transparency logs) with active brute-forcing (gobuster, dnsenum) and deduplicates results. - Security Configuration Analysis: Validates DNSSEC, SPF, DKIM, DMARC, open resolvers, wildcard records, and internal IP disclosure. - Use Case: A consultant scoping a web application pentest runs this workflow against example.com, discovers ns2 allows zone transfers revealing 347 records, finds 15 subdomains leaking internal RFC1918 addresses, and reports an exposed staging environment. ## Quick Start Enumerate all DNS records and subdomains for the authorized target domain example.com, attempt zone transfers against its nameservers, and produce a findings report.

Frequently Asked Questions about performing-dns-enumeration-and-zone-transfer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform a DNS zone transfer test with dig?

Run dig AXFR example.com @ns1.example.com against each authoritative nameserver. If the server responds with the full zone file instead of REFUSED, it is misconfigured and leaks all DNS records. You can also automate this with dnsrecon -d example.com -t axfr.

What tools are best for subdomain enumeration?

subfinder and amass provide fast passive discovery from certificate transparency logs and DNS databases, while gobuster and dnsenum perform active brute-forcing with wordlists like SecLists. Combining both approaches and deduplicating results gives the most complete coverage.

How do I check SPF, DKIM, and DMARC records for a domain?

Query TXT records with dig: dig TXT example.com for SPF, dig TXT _dmarc.example.com for DMARC, and dig TXT selector._domainkey.example.com for DKIM using common selectors like default, selector1, or google. Missing DMARC or a soft-fail SPF (~all) indicates spoofing risk.

Why does subdomain brute-forcing return false positives?

Wildcard DNS records cause any non-existent subdomain to resolve, making every brute-forced name appear valid. Test for wildcards first by querying a random name like nonexistent-xyz123.example.com, and filter results that resolve to the wildcard IP.

When should I not run DNS enumeration against a domain?

Only enumerate domains you have written authorization to test. Avoid excessive query rates that trigger rate limiting or resemble amplification attacks, and do not use discovered open resolvers for reflection purposes.