How to Fix bash: doggo: command not found in Minimal Linux Distributions

Network administrators running doggo to perform DNS lookups, inspect DoH (DNS over HTTPS), or debug DoT (DNS over TLS) on Linux servers are frequently stopped by the error bash: doggo: command not found. Because doggo is a modern alternative to dig written in Go, minimal distribution container images and cloud servers do not include it by default.

Install doggo via Native Package Repositories

Install the package on distributions with active community packaging:

  • Arch Linux: sudo pacman -S doggo
  • Alpine Linux: sudo apk add doggo
  • Debian / Ubuntu: Install via Homebrew: brew install doggo

Install via Pre-compiled GitHub Binary Release

For Debian, Ubuntu, Rocky Linux, or CentOS installations without Homebrew, download the standalone statically linked binary:

DOGGO_VER=$(curl -s https://api.github.com/repos/mr-karan/doggo/releases/latest | grep 'tag_name' | cut -d '"' -f 4)
curl -sL "https://github.com/mr-karan/doggo/releases/download/${DOGGO_VER}/doggo_${DOGGO_VER#v}_linux_x86_64.tar.gz" | tar -xz
sudo mv doggo /usr/local/bin/
sudo chmod +x /usr/local/bin/doggo

Install using Go Toolchain

If Go 1.18 or higher is already installed on the workstation:

go install github.com/mr-karan/doggo/cmd/doggo@latest
sudo cp ~/go/bin/doggo /usr/local/bin/

Verify installation by executing doggo --version or testing a DNS query with doggo example.com.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.