read the transcript!
illustrtion of a laptop. its keyboard just says QWERTY.
the basics: dig @SERVER TYPE DOMAIN
(SERVER and TYPE are both optional)
dig @18.104.22.168 NS example.com
dig TXT example.com
dig @22.214.171.124 example.com
default type: A
default server: from
tip: put +noall +answer in your ~/.digrc
This makes your output more readable by default, and you can always go back to the full output with
Hide all output.
Useless by itself, but
dig +noall +authority will just show you the “Authority” section of the response.
dig +short DOMAIN
Only show the record content.
$ dig +short example.com 126.96.36.199
dig +trace DOMAIN
Traces how the domain gets resolved, starting at the root nameservers.
This avoids all the caches, which is useful to make sure you set your record correctly.