doggo

DNS client written in Go, similar to dig, with color-coded or JSON output and support for DoH, DoT, DoQ, DNSCrypt, TCP and UDP transports.

install

doggo is a command-line DNS client, comparable to dig, written in Go. It was inspired by the Rust tool dog. It prints query results in a concise, color-coded tabular format, and can emit JSON for scripting, for example piping doggo example.com --json into jq. Basic usage looks like doggo MX github.com @9.9.9.9, where record types and a nameserver can be given as arguments.

It supports several transports: DNS over HTTPS (including explicit HTTP/3 with --http3), DNS over TLS, DNS over QUIC, DNSCrypt, TCP and UDP. Other documented features include iterative delegation tracing with --trace, reverse lookups with --reverse, EDNS options (Client Subnet, NSID, Cookies, Padding, Extended Errors), IDN to punycode conversion, ndots and search handling, multiple resolvers with configurable query strategies, and binding to a local source address with -b/--source. It can also run queries through Globalping using flags such as --gp-from and --gp-limit. It reports response times and has a debug mode.

Defaults can be set in a TOML config file (such as ~/.config/doggo/config.toml) or through DOGGO_* environment variables. Command line flags take highest precedence. Shell completions are available for zsh and fish, and there is a separate web interface. The tool suits developers, sysadmins and SREs who debug DNS resolution, compare resolvers, or script DNS checks. It is distributed as binaries for several operating systems, as a Docker image, and through many package managers.

Installation

# via Homebrew
brew install doggo
# via Go
go install github.com/mr-karan/doggo/cmd/doggo@latest
# via Install script
curl -fsSL https://raw.githubusercontent.com/mr-karan/doggo/main/install.sh | sh

doggo CLI usage

Alternatives & related tools

add a badge to your README

Maintain doggo? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/doggo.svg)](https://www.trmn.sh/tools/doggo?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/doggo?utm_source=badge"><img src="https://www.trmn.sh/badge/doggo.svg" alt="Featured on trmn" height="20"></a>