No description
  • Go 71%
  • HTML 14.6%
  • CSS 6.1%
  • JavaScript 4.9%
  • Shell 2.7%
  • Other 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-20 21:55:15 +05:30
.github chore(ci): use patched Go toolchain 2026-06-23 12:30:28 +05:30
cmd/doggo fix(app): use delegated NS RRset for authoritative queries 2026-06-21 22:08:37 -07:00
docs fix(resolvers): apply strategy to nameserver overrides (#238) 2026-05-20 14:43:40 +05:30
internal/app fix(nameservers): let internal strategy find VPN/Tailscale resolvers on macOS (#242) 2026-06-29 15:11:56 +05:30
pkg fix(nameservers): let internal strategy find VPN/Tailscale resolvers on macOS (#242) 2026-06-29 15:11:56 +05:30
web fix(web): preserve partial resolver results in API handler 2026-05-22 18:35:55 +05:30
www chore: revamp README 2024-07-02 11:45:53 +05:30
.gitignore feat: purge unused css in tailwind 2021-03-04 20:35:44 +05:30
.goreleaser.yml chore(release): prepare v1.2.0 artifacts 2026-06-23 12:28:26 +05:30
cli.Dockerfile refactor: replace logrus with slog 2024-07-01 22:20:11 +05:30
config-api-sample.toml feat: API Handlers 2021-03-02 18:59:55 +05:30
go.mod chore(ci): use patched Go toolchain 2026-06-23 12:30:28 +05:30
go.sum chore(release): prepare v1.2.0 artifacts 2026-06-23 12:28:26 +05:30
install.sh chore(release): prepare v1.2.0 artifacts 2026-06-23 12:28:26 +05:30
LICENSE Initial commit 2020-12-09 10:37:09 +05:30
Makefile docs: add EDNS documentation to features and improve structure 2025-10-29 20:52:26 +05:30
README.md docs: fix Gentoo typo in README 2026-07-20 21:55:15 +05:30
TODO.md feat: improve docs 2024-07-01 22:20:11 +05:30
web.Dockerfile fix: add ca-certificates in doggo-web 2024-07-03 22:07:16 +05:30


doggo

🐶 Command-line DNS client for humans

Web Interface · Documentation

doggo CLI usage


doggo is a modern command-line DNS client (like dig) written in Golang. It outputs information in a neat concise manner and supports protocols like DoH, DoT, DoQ, and DNSCrypt as well.

It's totally inspired by dog which is written in Rust. I wanted to add some features to it but since I don't know Rust, I found it as a nice opportunity to experiment with writing a DNS Client from scratch in Go myself. Hence the name dog + go => doggo.

Installation

curl -fsSL https://raw.githubusercontent.com/mr-karan/doggo/main/install.sh | sh

Package Managers

  • Arch Linux: pacman -S doggo
  • Eget: eget mr-karan/doggo
  • Gentoo: emerge net-dns/doggo
  • Homebrew: brew install doggo
  • MacPorts (macOS): port install doggo
  • Mise: mise use -g doggo@latest
  • Nix: nix profile install nixpkgs#doggo
  • Scoop (Windows): scoop install doggo
  • Winget (Windows): winget install doggo

Binary Install

You can download pre-compiled binaries for various operating systems and architectures from the Releases page.

Go Install

If you have Go installed on your system, you can use the go install command:

go install github.com/mr-karan/doggo/cmd/doggo@latest

The binary will be available at $GOPATH/bin/doggo.

Docker

docker pull ghcr.io/mr-karan/doggo:latest
docker run --rm ghcr.io/mr-karan/doggo:latest example.com

For more installation options, including binary downloads and Docker images, please refer to the full installation guide.

Quick Start

Here are some quick examples to get you started with doggo:

# Simple DNS lookup
doggo example.com

# Query MX records using a specific nameserver
doggo MX github.com @9.9.9.9

# Use DNS over HTTPS
doggo example.com @https://cloudflare-dns.com/dns-query

# JSON output for scripting
doggo example.com --json | jq '.responses[0].answers[].address'

# Reverse DNS lookup
doggo --reverse 8.8.8.8 --short

# Using Globalping
doggo example.com --gp-from Germany,Japan --gp-limit 2

Features

  • Human-readable output with color-coded and tabular format
  • JSON output support for easy scripting and parsing
  • Multiple transport protocols: DoH, DoT, DoQ, TCP, UDP, DNSCrypt
  • EDNS support with Client Subnet (ECS), NSID, Cookies, Padding, and Extended Errors
  • Additional section support for glue records and supplementary data
  • Internationalized Domain Names (IDN) with automatic punycode conversion
  • Support for ndots and search configurations
  • Multiple resolver support with customizable query strategies
  • IPv4 and IPv6 support
  • Web interface available
  • Shell completions for zsh and fish
  • Reverse DNS lookups
  • Flexible query options including various DNS flags
  • Debug mode for troubleshooting
  • Response time measurement
  • Cross-platform support

Documentation

For comprehensive documentation, including detailed usage instructions, configuration options, and advanced features, please visit our official documentation site.

Sponsorship

If you find doggo useful and would like to support its development, please consider becoming a sponsor. Your support helps maintain and improve this open-source project.

GitHub Sponsors

Every contribution, no matter how small, is greatly appreciated and helps keep this project alive and growing. Thank you for your support! 🐶❤️

License

LICENSE