Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ## ----------------------------------------------------------------------------------------- ##
- dig +short +identify $Server ## see what name server
- ## or whose cache is providing answers
- ## ----------------------------------------------------------------------------------------- ##
- dig +trace $Domain.com ## Debug DNS Tracing
- ## ----------------------------------------------------------------------------------------- ##
- dig $Domain.com | grep status ## receive the NXDOMAIN status.
- ## ----------------------------------------------------------------------------------------- ##
- dig $Domain.com | grep Query ## query time only
- ## ----------------------------------------------------------------------------------------- ##
- dig $Domain.com $Type ## a, mx, ns, soa, srv, txt, any
- ## ----------------------------------------------------------------------------------------- ##
- dig -x $TargetIP ## Pointer records
- ## ----------------------------------------------------------------------------------------- ##
- dig @$NameServerIP $Domain.com axfr ## Zone transfer
- ## ----------------------------------------------------------------------------------------- ##
- dig @$NameServerIP $Domain.com afro ## Forward zone transfer
- ## ----------------------------------------------------------------------------------------- ##
- dig @$IPAddr $Domain +norecurse ## Non recursive query (cache lookup)
- ## ----------------------------------------------------------------------------------------- ##
- dig MX +short $Domain ## Perform MX Record Lookup
- ## ----------------------------------------------------------------------------------------- ##
- dig +short -t txt $@ ## Sender Policy Framework (SPF) record
- ## ----------------------------------------------------------------------------------------- ##
- dig ns $Domain ## List the Name Servers for google.com
- ## ----------------------------------------------------------------------------------------- ##
- dig a $Domain.com @$Nameserver ## Perform DNS IP Lookup
- ## ----------------------------------------------------------------------------------------- ##
- ##-============================================-##
- ## [+] Query Wikipedia via console over DNS
- ##-============================================-##
- dig +short txt <keyword>.wp.dg.cx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement