performing-dns-enumeration-and-zone-transfer

Featured

Enumerates DNS records, attempts zone transfers, brute-forces subdomains, and maps DNS infrastructure during authorized reconnaissance to identify attack surface, misconfigurations, and information disclosure in target domains.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Performing DNS Enumeration and Zone Transfer ## When to Use - Mapping the external attack surface of a target organization during authorized penetration tests - Discovering hidden subdomains, internal hostnames, and IP addresses exposed via DNS records - Testing whether DNS servers allow unauthorized zone transfers that leak the entire zone file - Identifying mail servers, name servers, and service records for further targeted testing - Validating DNS security configurations including DNSSEC, SPF, DKIM, and DMARC **Do not use** against domains you do not have authorization to test, for DNS amplification or reflection attacks, or to overwhelm DNS servers with excessive query volumes. ## Prerequisites - Written authorization to perform DNS enumeration against the target domain - DNS enumeration tools installed: dig, nslookup, host, dnsrecon, dnsenum, subfinder, amass - Network access to the target's DNS servers (UDP/TCP port 53) - Wordlist for subdomain brute-forcing (SecLists dns-wordlist or similar) - Understanding of DNS record types (A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, PTR) ## Workflow ### Step 1: Identify DNS Servers and Basic Records ```bash # Find authoritative name servers dig NS example.com +short # ns1.example.com. # ns2.example.com. # Get SOA record for zone metadata dig SOA example.com +short # ns1.example.com. admin.example.com. 2024031501 3600 900 604800 86400 # Enumerate all common record types dig example.com ANY +noall +answer # Get MX records (...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category