본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)35k · #8220

performing-dns-enumeration-and-zone-transfer

하는 일

이 도구는 인터넷에서 웹사이트에 관한 정보를 찾습니다. 관련 사이트나 기술 세부 정보 같은 것을 수집하며, 사이트의 구조를 이해하고 잠재적인 보안 약점을 찾는 데 도움을 줍니다.

사용하는 경우

  • ✓허가를 받고 웹사이트의 보안을 테스트할 때.
  • ✓서브도메인(메인 사이트 안의 작은 사이트)을 찾을 때.
  • ✓사이트의 보안 설정이 올바른지 확인할 때.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-dns-enumeration-and-zone-transfer/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-dns-enumeration-and-zone-transfer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“example.com 웹사이트에 대한 정보를 찾아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

DNS 서버(인터넷의 안내원)에 질문하는 도구를 사용해 데이터를 수집합니다. 그다음 완전한 주소 목록을 복사하려(영역 전송) 시도하고, 서브도메인 이름을 추측합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

# 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 (mail servers)
dig MX example.com +short
# 10 mail.example.com.
# 20 mail-backup.example.com.

# Get TXT records (SPF, DKIM, DMARC, verification)
dig TXT example.com +short

# Check for DMARC policy
dig TXT _dmarc.example.com +short

# Check for DKIM selectors
dig TXT default._domainkey.example.com +short
dig TXT selector1._domainkey.example.com +short
dig TXT google._domainkey.example.com +short

# Get SRV records for common services
dig SRV _sip._tcp.example.com +short
dig SRV _ldap._tcp.example.com +short
dig SRV _kerberos._tcp.example.com +short

Step 2: Attempt Zone Transfers

# Attempt AXFR zone transfer against each name server
dig AXFR example.com @ns1.example.com
dig AXFR example.com @ns2.example.com

# Use host command for zone transfer
host -t axfr example.com ns1.example.com

# Use dnsrecon for automated zone transfer attempts
dnsrecon -d example.com -t axfr

# If zone transfer succeeds, save the output
dig AXFR example.com @ns1.example.com > zone_transfer_results.txt

# Test for IXFR (incremental zone transfer)
dig IXFR=2024031500 example.com @ns1.example.com

Step 3: Subdomain Enumeration via Brute Force

# Use dnsenum for comprehensive enumeration
dnsenum --dnsserver ns1.example.com --enum -f /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -r example.com -o dnsenum_output.xml

# Use dnsrecon with brute force
dnsrecon -d example.com -t brt -D /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt

# Use gobuster for fast DNS brute forcing
gobuster dns -d example.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-20000.txt -t 50 -o gobuster_dns.txt

# Use subfinder for passive subdomain discovery
subfinder -d example.com -all -o subfinder_results.txt

# Use amass for comprehensive enumeration (passive + active)
amass enum -d example.com -passive -o amass_passive.txt
amass enum -d example.com -active -brute -o amass_active.txt

# Combine and deduplicate results
cat subfinder_results.txt amass_passive.txt amass_active.txt gobuster_dns.txt | sort -u > all_subdomains.txt

Step 4: Reverse DNS and PTR Enumeration

# Reverse DNS lookup on discovered IP ranges
dnsrecon -d example.com -t rvl -r 10.10.0.0/24

# PTR record enumeration for IP range
for ip in $(seq 1 254); do
  result=$(dig -x 10.10.1.$ip +short 2>/dev/null)
  if [ -n "$result" ]; then
    echo "10.10.1.$ip -> $result"
  fi
done

# Use Nmap for reverse DNS on a subnet
nmap -sL 10.10.0.0/24 | grep "(" | awk '{print $5, $6}'

# Check for DNS cache snooping (information about queried domains)
dig @ns1.example.com www.competitor.com +norecurse

Step 5: Analyze DNS Security Configuration

# Check DNSSEC validation
dig example.com +dnssec +short
dig DNSKEY example.com +short
dig DS example.com +short

# Test for DNS rebinding vulnerability
# Check if the DNS server has a short TTL that could enable rebinding
dig example.com +noall +answer | grep -i ttl


…
자주 묻는 질문

영역 전송(zone transfer)이란 무엇인가요?

DNS 서버에 웹사이트의 주소 목록과 정보 전체를 복사해 달라고 요청하는 것과 같습니다. 통제 없이 허용되면 많은 세부 정보가 노출될 수 있습니다.

서브도메인이란 무엇인가요?

메인 웹사이트의 섹션과 같습니다. 예를 들어 'blog.example.com'은 'example.com'의 서브도메인입니다.

아무 웹사이트에나 사용할 수 있나요?

아니요. 웹사이트를 테스트하려면 명시적인 허가가 필요합니다. 허가 없이 사용하는 것은 불법입니다.

상세 정보

작성자의 원본 설명

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. '

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#8220
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬