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.
doggo mrkaran.devNAME TYPE CLASS TTL ADDRESS NAMESERVERmrkaran.dev. A IN 300s 104.21.7.168 127.0.0.53:53mrkaran.dev. A IN 300s 172.67.187.239 127.0.0.53:53
To disable colored output, use the --color=false
flag:
doggo mrkaran.dev --color=false
JSON Output
For scripting and programmatic use, Doggo supports JSON output using the --json
or -J
flag:
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:
doggo mrkaran.dev --short104.21.7.168172.67.187.239