DNS Record Enumeration
Pull common and uncommon records to map infrastructure. ANY queries often restricted; fall back to type-specific sweeps.
ANY Record Query
Returns all records the server allows. DNSSEC flag adds signatures; occasional extra leakage.
Alternative syntax; test both when one fails.
Comprehensive dump; sometimes bypasses restrictions.
Exhaustive Record Type Sweep
Script all standard types when ANY blocked:
#!/usr/bin/env bash
DOMAIN="$1"
DNS_SERVER="$2"
TYPES="A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HINFO HIP IPSECKEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RP RRSIG SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT SPF"
for t in $TYPES; do
echo "== $t =="
if [ -n "$DNS_SERVER" ]; then
dig "$DOMAIN" "$t" @@"$DNS_SERVER" +noall +answer
else
dig "$DOMAIN" "$t" +noall +answer
fi
echo
done
Run as ./script.sh $DOMAIN $TARGET_IP. Non-empty answers indicate exposed records.
Targeted Common Records
SOA for primary server and admin email:
MX for mail infrastructure:
For full zone disclosure when the server permits it, see DNS Zone Transfer (AXFR). In AD environments, misconfigured ADIDNS records can be poisoned — see ADIDNS Poisoning and Hijacking.
Was this helpful?
Your feedback helps improve this page.