doggo(1)
doggo is a modern DNS client for querying DNS records with colorized output and multiple output formats.
Synopsis
doggo [OPTIONS] [@SERVER] [QUERY]...Description
doggo is a user-friendly DNS lookup tool that serves as an alternative to dig and nslookup. It provides colorized terminal output, supports multiple DNS servers and query types, and can output results in various formats including JSON.
By default, doggo performs A and AAAA record lookups, but you can specify different record types (MX, CNAME, TXT, SOA, etc.). You can query multiple DNS servers in sequence and combine multiple queries in a single command.
Common options
| Flag | What it does |
|---|---|
-q, --query | Specify the DNS query type (A, AAAA, MX, CNAME, TXT, SOA, NS, etc.) |
-t, --type | Alternative syntax for specifying query type |
-n, --nameserver | Use a specific nameserver for the query (e.g., 8.8.8.8) |
-c, --class | Set DNS class (IN for internet, CH for chaos, HS for hesiod) |
-j, --json | Output results in JSON format |
--json-seq | Output JSON results with RFC 7464 JSON text sequences format |
-H, --header | Display DNS header information in results |
--timeout | Set query timeout in seconds (default 5) |
-4 | Use IPv4 transport only |
-6 | Use IPv6 transport only |
Examples
Query A and AAAA records for example.com using default nameserver
doggo example.comLook up MX (mail exchange) records for example.com
doggo -q MX example.comQuery example.com using Google's public DNS server (8.8.8.8)
doggo @8.8.8.8 example.comPerform multiple queries: TXT record for example.com and CNAME for sub.example.com
doggo -q TXT example.com -q CNAME sub.example.comOutput DNS results in JSON format and pipe to jq for parsing
doggo -j example.com | jqQuery nameserver records for example.com using Cloudflare's DNS (1.1.1.1)
doggo -q NS example.com @1.1.1.1Display DNS header information along with the query results
doggo -H example.com