Skip to content

Instantly share code, notes, and snippets.

@tuksik
Last active January 25, 2024 16:16
Show Gist options
  • Save tuksik/aac1c336bb72429487d3 to your computer and use it in GitHub Desktop.
Save tuksik/aac1c336bb72429487d3 to your computer and use it in GitHub Desktop.
dig cheat sheet
#Dig HowTo [https://www.madboa.com/geek/dig/]
# get the address(es) for yahoo.com
dig yahoo.com A +noall +answer
# get a list of yahoo's mail servers
dig yahoo.com MX +noall +answer
# get a list of DNS servers authoritative for yahoo.com
dig yahoo.com NS +noall +answer
# get all of the above
dig yahoo.com ANY +noall +answer
#More obscurely, for the present anyway, you can also poll for a host’s IPv6 address using the AAAA option.
dig www.isc.org AAAA +short
#If the domain you want to query allows DNS transfers, you can get those, too. The reality of life on the Internet, however, is that very few domains allow unrestricted transfers these days.
dig yourdomain.com AXFR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment