DNS Utils Cheat Sheet

Apr 27, 2019

All queries can be appended with @NAMESERVER where NAMESERVER is the DNS server you wish to interrogate.

DNS Forward Lookup

dig example.com

DNS Reverse Lookup

dig -x

DNS Specific Record Lookup

dig TYPE example.com

Replace TYPE with the type of record you want, for example a, mx or txt.

DNS Zone Transfer

Very useful when trying to enumerate hosts on a domain. Usually disabled but very handy if enabled when pentesting.

dig axfr example.com
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.