dig (BIND)
$ dig Foundation Low Riskdig (Domain Information Groper) from ISC BIND is the classic DNS troubleshooting tool available on nearly every macOS and Linux host. Passing +short or +noall +answer trims verbose headers for clean shell parsing.
brew install bind Zero-install baseline DNS diagnostic binary; use +short in shell pipelines or prefer doggo --json when JSON output is available.
Agent-Readiness Checklist
Local Probe EvidenceCaptured --help excerpt
Invalid option: --help
Usage: dig [@global-server] [domain] [q-type] [q-class] {q-opt}
{global-d-opt} host [@local-server] {local-d-opt}
[ host [@local-server] {local-d-opt} [...]]
Use "dig -h" (or "dig -h | more") for complete list of options FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive output with +short and +noall +answer, though lacks native JSON output.
- Supports
+shortand+noall +answerfiltering; plain text output only
Strictly read-only DNS resolution tool with no filesystem writes.
- Read-only DNS queries without credential storage
Pre-installed on macOS and almost every Linux system (via bind-utils / dnsutils).
- Pre-installed system utility across Unix environments
Reliable +trace delegation checks and +short filtering, though doggo --json is cleaner for structured scripts.
- Supports
+trace,+short, DNSSEC (+dnssec), and DoH in newer BIND
Maintained by Internet Systems Consortium (ISC) under MPL-2.0.
- Official ISC BIND9 project
Thorough man page, though +option syntax differs from standard --flag conventions.
- Official BIND9 man page documentation
Security, Auth & Guardrails
No credentials required for standard lookups; optional TSIG keys (-k/-y) are passed explicitly.
Free, MPL-2.0 open-source; pre-installed on macOS and most Linux distributions.
# dig Agent Rules - Always pass `+short` or `+noall +answer` to avoid wasting tokens on default BIND statistics banners. - Use `+time=5 +tries=2` when querying unresponsive nameservers.
Agent-Ready Command Recipes
Safe Read-Only Queries
dig +short @1.1.1.1 example.com A
Prints only the resolved IP addresses (+short) directly from 1.1.1.1 without boilerplate.
dig +noall +answer example.com MX
Suppresses header/stats noise (+noall) and prints only answer records (+answer).
Strengths for Agents
- + Pre-installed on macOS and most Linux servers/containers.
- +
+shortand+tracediagnose delegation and propagation issues reliably.
Caveats & Pitfalls
- ! No native JSON output; default output includes noisy BIND statistics unless
+noall +answeror+shortis passed. - ! Unusual
+optionflag syntax.