Recon dns analysis

From NoorQureshi/security-skills · View interactive version

Recon dns analysis is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Deep DNS analysis for attack surface — record mining, zone transfers, DNSSEC/NSEC walking, and dangling records. Load during recon, on "DNS", a domain in scope, or hunting takeovers/origin IPs. Signals: a root domain, CNAMEs, MX/TXT/SPF, NS servers, subdomains to resolve.

How to use this skill

Skill file

DNS analysis

When it applies

Early recon and anytime you want surface/intel from DNS: subdomains, mail/infra hints, cloud

providers, dangling records (takeover leads), and origin IPs hiding behind a CDN.

Why it works

DNS is a public map of an org's infrastructure. Records leak providers (CNAME → SaaS), mail and

SPF/DMARC hosts, and misconfigurations (open zone transfer dumps everything; NSEC lets you walk a

DNSSEC zone). Stale records point at deprovisioned services (→ takeover).

Method

  1. Enumerate records: dig ANY domain, plus explicit A AAAA CNAME MX TXT NS SOA — TXT/SPF

reveal third parties; MX reveals mail infra.

  1. Zone transfer (rare but total): find NS (dig NS domain), then dig axfr @ns1 domain —

a successful AXFR dumps every record.

  1. DNSSEC walking: if NSEC is used, walk the chain to enumerate names (dnsrecon -t zonewalk).
  2. Dangling / takeover leads: resolve CNAMEs; ones pointing at unclaimed SaaS → web-subdomain-takeover.
  3. Origin discovery: historical DNS (SecurityTrails), SPF-listed IPs, and cert SANs can reveal

the real origin behind a CDN (bypass the WAF later).

Gotchas

Verify success

A richer map: resolvable subdomains, provider/infra hints, any AXFR/NSEC dump, and takeover or

origin-IP leads to hand to the next skill.

References

dig/dnsrecon docs; SecurityTrails; OWASP Amass; can-i-take-over-xyz.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.