2 ms·
>Using [dig] might seem a little intimidating as its syntax is frankly plain stupid. Dig has one of the least stupid syntaxes, IMO. It'll happily take your que
by parliament32 6y ago
>Using [dig] might seem a little intimidating as its syntax is frankly plain stupid.
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. txt