dog <command>

A command-line DNS client


commandHuman-readable host names, nameservers, types, or classes


AQuery Domain A Record
MXQuery Domain MX Record
CNAMEQuery Domain CNAME Record
TXTQuery Domain TXT Record
NSQuery NS Record
SOAQuery SOA Record
TTLQuery TTL Record
ANY +noall +answerQuery ALL DNS Records
+nocomments +noquestion +noauthority +noadditional +nostatsQuery only answer section


-q,--query <command>Host name or IP address to query
-t,--type <command>Type of the DNS record being queried (A, MX, NS...)
-n,--nameserver <command>Address of the nameserver to send packets to
-class <command>Network class of the DNS record being queried (IN, CH, HS)
--edns <command>Whether to OPT in to EDNS (disable, hide, show)
--txid <command>Set the transaction ID to a specific value
-Z <command>Set uncommon protocol-level tweaks
-U,--udpUse the DNS protocol over UDP
-T,--tcpUse the DNS protocol over TCP
-S,--tlsUse the DNS-over-TLS protocol
-H,--httpsUse the DNS-over-HTTPS protocol
-1,--shortShort mode: display nothing but the first result
-J,--jsonDisplay the output as JSON
--color <command> <command>When to colourise the output (always, automatic, never)
--secondsDo not format durations, display them as seconds
--timePrint how long the response took to arrive