Networking Tools Every Developer Needs to Know
martinheinz.dev
martinheinz.dev
Dig has one of the least stupid syntaxes, IMO. It'll happily take your query in any order and isn't case sensitive. @ for the dns server you want to ask (or omit for resolv.conf lookup), + for options, otherwise specify name and type (and class if you want) in any order.. the following four queries will all get you the same info back without complaint:
$ dig TXT google.com. +short @8.8.8.8
$ dig +short @8.8.8.8 google.com. txt
$ dig google.com. @8.8.8.8 TXT +short
$ dig @8.8.8.8 +short google.com. txtThat doesn't mean it's not useful, but there are entire swathes of developers who will never deal with Linux, so claiming "every developer" is hyperbole.
I kid, I kid. I know they don't really :P