The Domain Name System (DNS) translates domain names into IP addresses. Misconfigured DNS servers can expose internal infrastructure details and enable various attacks.
Default Port: 53 (UDP/TCP)
Basic Enumeration
Banner Grabbing
ANY Record Query
Zone Transfer (AXFR)
Standard Queries
Active Directory SRV Records
Subdomain Enumeration
DNS Brute Force
Automated Subdomain Discovery
nmap Scripts
Reverse DNS Brute Force
If you find subdomains resolving to internal IPs, try reverse DNS BF against the entire IP range to discover more internal hosts.
DNSSEC Enumeration
IPv6 DNS Brute Force
DNS Recursion DDoS
If DNS recursion is enabled, an attacker can spoof the origin on UDP packets to make the DNS server send responses to a victim server (DNS amplification attack).
DNS Auditing Checks
NS Delegation Integrity
Very Low TTL on Critical Records
CAA Policy
Post-Exploitation Config Files
Key settings to check in BIND:
allow-transfer — who can do zone transfers
allow-recursion — who can send recursive requests
allow-query — who can query the server
NDN Harvesting via DNS
Sending email to a non-existent address may trigger a Non-Delivery Notification (NDN) that reveals internal server names and IP addresses in its headers.