Here is what you should now to use dig
tool.
Search for particular record, default is A.
dig CNAME cloudflare.com
Make reverse lookup.
$ dig -x 104.16.132.229
...
$ dig ptr 229.132.16.104.in.adde.arpa
...
Use specific DNS server and show shorter output.
dig @9.9.9.9 +short cloudflare.com
Traces how the domain it’s resolved, with TCP when querying name servers. The default behavior is to use UDP.
dig +trace +tcp cloudflare.com