$linuxjunkies
>

doggo(1)

doggo is a modern DNS client for querying DNS records with colorized output and multiple output formats.

UbuntuDebianFedoraArch

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

FlagWhat it does
-q, --querySpecify the DNS query type (A, AAAA, MX, CNAME, TXT, SOA, NS, etc.)
-t, --typeAlternative syntax for specifying query type
-n, --nameserverUse a specific nameserver for the query (e.g., 8.8.8.8)
-c, --classSet DNS class (IN for internet, CH for chaos, HS for hesiod)
-j, --jsonOutput results in JSON format
--json-seqOutput JSON results with RFC 7464 JSON text sequences format
-H, --headerDisplay DNS header information in results
--timeoutSet query timeout in seconds (default 5)
-4Use IPv4 transport only
-6Use IPv6 transport only

Examples

Query A and AAAA records for example.com using default nameserver

doggo example.com

Look up MX (mail exchange) records for example.com

doggo -q MX example.com

Query example.com using Google's public DNS server (8.8.8.8)

doggo @8.8.8.8 example.com

Perform multiple queries: TXT record for example.com and CNAME for sub.example.com

doggo -q TXT example.com -q CNAME sub.example.com

Output DNS results in JSON format and pipe to jq for parsing

doggo -j example.com | jq

Query nameserver records for example.com using Cloudflare's DNS (1.1.1.1)

doggo -q NS example.com @1.1.1.1

Display DNS header information along with the query results

doggo -H example.com

Related commands