Difference between revisions of "Dig"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
# Simple Commands | # Simple Commands | ||
| + | |||
| + | ## PTR | ||
| + | ``` | ||
| + | dig -x $ip +short | ||
| + | ``` | ||
| + | |||
``` | ``` | ||
dig +short google.com TXT @8.8.8.8 # test recursion | dig +short google.com TXT @8.8.8.8 # test recursion | ||
Revision as of 14:53, 14 December 2023
https://www.rootusers.com/12-dig-command-examples-to-query-dns-in-linux/
Simple Commands
PTR
dig -x $ip +short
dig +short google.com TXT @8.8.8.8 # test recursion
dig foo.example.com +nssearch dig foo.example.com +all
dig +short @8.8.8.8 -p 5300 google.com
dig +noall +answer +multiline google.com any dig SOA +multiline google.com