Skip to content

Output Formats

Doggo provides flexible output formats to suit different use cases, from human-readable colored output to machine-parsable JSON.

Colored Output

By default, Doggo uses a colored, tabular format for easy readability.

Terminal window
doggo mrkaran.dev
NAME TYPE CLASS TTL ADDRESS NAMESERVER
mrkaran.dev. A IN 300s 104.21.7.168 127.0.0.53:53
mrkaran.dev. A IN 300s 172.67.187.239 127.0.0.53:53

To disable colored output, use the --color=false flag:

Terminal window
doggo mrkaran.dev --color=false

JSON Output

For scripting and programmatic use, Doggo supports JSON output using the --json or -J flag:

Terminal window
doggo internetfreedom.in --json | jq
{
"responses": {
"answers": [
{
"name": "internetfreedom.in.",
"type": "A",
"class": "IN",
"ttl": "22s",
"address": "104.27.158.96",
"rtt": "37ms",
"nameserver": "127.0.0.1:53"
},
// ... more entries ...
],
"queries": [
{
"name": "internetfreedom.in.",
"type": "A",
"class": "IN"
}
]
}
}

Short Output

For a more concise view, use the --short flag to show only the response section:

Terminal window
doggo mrkaran.dev --short
104.21.7.168
172.67.187.239