githubEdit

dns-enum

DNS Enum

whois example.com
----
nslookup example.com
nslookup -type=any example.com
----
dig example.com
dig NS example.com
dig MX example.com
dig TXT example.com
dig any example.com
dig -t A example.com
----
fierce -dns example.com
fierce -dns example.com -dnsserver 8.8.8.8
----
host -t A example.com
for sub in $(cat wordlist.txt); do host -t A $sub.example.com; done
----
bluto -t example.com
----
massdns -r resolver.txt -t A -o S -w output.txt wordlist.txt

ZONE Transfer

Reverse DNS Lookup

Subdomain Enumeration

Notes

  • DNS ( Domain Name System) Enum is the critical step during Information Gathering.

  • It is used to gather domain related information like subdomain, IP Addresses, mail servers, name servers.

  • DNS Enumeration is the process of locating all DNS record associated with the domain.

  • The Record can be reveled.

    • subdomains (e.g. dev.example.com)

    • IP Addresses (A, AAA)

    • Mail Server (MX)

    • Name Server (NS)

    • TXT Record (TXT) like SPF, DKIM

    • CNAME (aliases)

    • Zone Transfer (AXFR)

Last updated