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 12,642 stars 1468 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
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
3 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

hunting-for-dns-based-persistence

Hunt for DNS-based persistence mechanisms including DNS hijacking, dangling CNAME records, wildcard DNS abuse, and unauthorized zone modifications using passive DNS databases, SecurityTrails API, and DNS audit log analysis.

12,642 Updated today
mukul975
AI & Automation Solid

dns-protocol

Expert skill for DNS protocol implementation, configuration, and service discovery

1,034 Updated today
a5c-ai
AI & Automation Featured

conducting-external-reconnaissance-with-osint

Conducts external reconnaissance using Open Source Intelligence (OSINT) techniques to map an organization's external attack surface without directly interacting with target systems. The tester gathers information from public sources including DNS records, certificate transparency logs, search engines, social media, code repositories, and data breach databases to build a comprehensive target profile. Activates for requests involving OSINT reconnaissance, external footprinting, attack surface mapping, or passive information gathering.

12,642 Updated today
mukul975
AI & Automation Featured

detecting-command-and-control-over-dns

Detects command-and-control (C2) communications tunneled through DNS protocol including DNS tunneling tools (Iodine, dnscat2, dns2tcp, Cobalt Strike DNS beacon), domain generation algorithms (DGA), encoded payload delivery via TXT/CNAME records, and DNS beaconing patterns. Covers Shannon entropy analysis of query subdomains, statistical anomaly detection, ML-based DGA classification, passive DNS correlation, and Zeek/Suricata signature development. Activates for requests involving DNS-based C2 detection, DNS tunnel identification, suspicious DNS traffic investigation, or DGA domain classification.

12,642 Updated today
mukul975
AI & Automation Featured

performing-subdomain-enumeration-with-subfinder

Enumerate subdomains of target domains using ProjectDiscovery's Subfinder passive reconnaissance tool to map the attack surface during security assessments.

12,642 Updated today
mukul975