# 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.

Stars: 4.6k · Language: Go · License: GPL-3.0 · Categories: Network

- Repository: https://github.com/mr-karan/doggo
- Website: https://doggo.mrkaran.dev/
- Page: https://www.trmn.sh/tools/doggo

## Install

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

## Overview

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

```bash
# via Homebrew
brew install doggo
```

```bash
# via Go
go install github.com/mr-karan/doggo/cmd/doggo@latest
```

```bash
# via Install script
curl -fsSL https://raw.githubusercontent.com/mr-karan/doggo/main/install.sh | sh
```

![doggo CLI usage](https://media.trmn.sh/cached/72fa04e42e5b99ea0f18695f3f60c1445cacbec92dac4bf354680964d8484a5b.png)

## Alternatives

- [devzat](https://www.trmn.sh/tools/devzat.md): SSH server that creates a chat room instead of shell access, enabling cross-platform terminal chat (Go, 4.1k stars)
- [curlie](https://www.trmn.sh/tools/curlie.md): A curl frontend that combines curl's features with HTTPie's user-friendly interface and syntax (Go, 3.7k stars)
- [bombardier](https://www.trmn.sh/tools/bombardier.md): HTTP(S) benchmarking tool written in Go that uses fasthttp by default, with optional net/http for HTTP/2, and reports latency, requests/sec and throughput. (Go, 6.9k stars)
- [tldx](https://www.trmn.sh/tools/tldx.md): CLI tool for brainstorming and checking domain name availability with keyword permutations and TLD presets (Go, 1.9k stars)
- [wego](https://www.trmn.sh/tools/wego.md): Terminal weather client showing 1–7 day forecasts from several backends, rendered as an ASCII-art table, emoji, markdown, or JSON. (Go, 8.6k stars)

---

Canonical: https://www.trmn.sh/tools/doggo
