DNS Enumeration
DNS Enumeration
Distributed database responsible for translating user friendly domain name into ip address
Hierarchical structure that is divided into several zones starting with the
top level root zone
Most Common type of DNS Records
NS
- Nameserver Records containthe name of the authoritative server hosting the DNS records for domain
A
- containsIPV4 address of a hostname
AAAA
- Known asquad A record
conatinsIPV6 address of a hostname
MX
- Mail Exchange RecordPTR
- Pointer Record are used inreverse lookup zones
andfind record associated with IP address
CNAME
Canonical Name Record are used to createaliases for other host records
TXT
- can containany arbitary data used for various purposes
such as domain ownership verification
DNS Recon Scripting
host
command
host
command host
command can find the IP Address of www.megacorpone.com
host www.megacorpone..com
host -t mx/txt meagcorpone.com
To determine megacorpone.com has hostname idontexit we can use:
host idontexit.megacorpone.com
There was not same response for valid and not valid domain. So We can use this, to enumerate DNS query and scirpting
DNS query brute-forcing Script
Example common wordlist for brute-force
Other Kali Tools
dnsrecon
Standard Scan
dnsrecon -d magacorpone.com -t std
Bruteforce Scan
dnsrecon -d megacorpone.com -D ~/list.txt -t brt
Window DNS Enumeration
window can be use nslookup
command for dns enumeration
nslookup
command for dns enumeration nslookup -type=TXT info.megacorptwo.com
Last updated