Dog Is a modern command line DNS lookup utility, similar to dig, The output is colorful, supports DNS on TLS and DNS protocol on HTTPS and so on. It is suitable for macOS, Microsoft Windows and Linux.
Similar to dig, Doggo performs a DNS lookup and displays the answer returned from the queried name server, which is useful for solving DNS problems.
Other features include support for displaying output as JSON, support for ndots and search configuration from resolv.conf or command line parameters, and can use IPv4, IPv6 or both IPv4 and IPv6. It supports passing human-readable hostnames, name servers, types or classes as command line parameters, or you can use “normal” command line parameters instead.
To use Doggo, all you have to do is to pass the host name to be queried as a command line parameter, and the command line tool will request
If necessary, you can specify multiple host names for query. Just separate them by a space.
You can request it by passing a specific record type in the command line before or after the domain name.Such as request
MX record of
doggo duckduckgo.com A NS MX
You can also specify the DNS server used for the request, for example, using Cloudflare DNS:
doggo duckduckgo.com @220.127.116.11
You can also use the long format command line parameters to specify the record type (
--type, DNS server (
--nameserver), class (
--class) And the host name to be queried (
--query). For details, please refer to Doggo Help.
By default, doggo sends queries via UDP.To send them via TCP, use the following command to specify the DNS resolver
@tcp://, Like this (for example, 18.104.22.168 DNS resolver for Cloudflare):
doggo duckduckgo.com @tcp://22.214.171.124
To send queries using DoT (DNS-over-TLS; port 853 is used by default), use
doggo duckduckgo.com @tls://@126.96.36.199
To use DoH (DNS-over-HTTPS) to query the hostname, you need to use the following method to specify the DoH resolver
@https://, Such as using Cloudflare HTTP-over-HTTPS parser:
doggo duckduckgo.com @https://cloudflare-dns.com/dns-query
Doggo is also available as a web tool at the following URL: https://doggo.mrkaran.dev/
You may also want to check out dog, A similar command line DNS client, it inspired Doggo, but written in Rust instead of Golang.
On the project homepage Installation Notes Doggo uses pre-compiled binaries (to /usr/local/bin), uses Docker, Snapshot storage, AUR, Or build it from source code.You can also go to Publish page Download source code or binary files for Linux, macOS and Windows (amd64 and arm64 are both available for Linux and macOS).