DNS Enumeration

// work in progress:

Information gathering using public available DNS information

DNS Enumeration

 

DNS Record types
A
Host A record (IPv4)
AAAA
Host A record (IPv6)
MX
Mailserver record
NS
Nameserver record
CNAME
Alias record
PTR
Pointer record
SOA
Authority record
Scanning DNS records with ‘host’ command:
Check for DNS zone transfer against hosts with NS records:
Nmap reverse DNS and traceroute scan:
Checking domain owner with whois:
Whois against IP addresses:


Example Enumeration of domain megacorpone.com

1) Get the DNS Servers:
2) Create list of possible subdomain names:
3) Bruteforce domain names:
4) Bruteforce reverse lookup (seq to limit IP range):
5) Bruteforce zone transfer with bash script:
Testing the script:
6) Alternative: Use dnsrecon:
7) Alternative: Use dnsenum:


 

Author: kimbo

Leave a Reply

Your email address will not be published. Required fields are marked *