Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

dig (BIND)

$ dig Foundation Low Risk
Internet Systems Consortium (ISC) · Browser & Web · MPL-2.0 · macos / linux / windows

dig (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.

FCRS-1.0 Score
86 /100
Good
High Confidence
Zero-Friction Install
brew install bind
CLI vs MCP Decision CLI Only

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 Evidence
— JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
DiG 9.10.6
Startup
3 ms
Exit Codes (help / invalid)
1 / 1
NO_COLOR Clean / Non-TTY Safe
Yes / Safe
Captured --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

Agent-Readiness 19 / 25

Deterministic non-interactive output with +short and +noall +answer, though lacks native JSON output.

  • Supports +short and +noall +answer filtering; plain text output only
Trust & Safety 24 / 25

Strictly read-only DNS resolution tool with no filesystem writes.

  • Read-only DNS queries without credential storage
Setup & Portability 15 / 15

Pre-installed on macOS and almost every Linux system (via bind-utils / dnsutils).

  • Pre-installed system utility across Unix environments
Utility & Efficiency 12 / 15

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
Maintenance & Lineage 9 / 10

Maintained by Internet Systems Consortium (ISC) under MPL-2.0.

  • Official ISC BIND9 project
Docs & Verifiability 7 / 10

Thorough man page, though +option syntax differs from standard --flag conventions.

  • Official BIND9 man page documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required for standard lookups; optional TSIG keys (-k/-y) are passed explicitly.

Side Effects
Read-Only
Cost & Quotas

Free, MPL-2.0 open-source; pre-installed on macOS and most Linux distributions.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Compact DNS answer lookup
dig +short @1.1.1.1 example.com A

Prints only the resolved IP addresses (+short) directly from 1.1.1.1 without boilerplate.

Inspect full answer section with TTLs
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.
  • + +short and +trace diagnose delegation and propagation issues reliably.

Caveats & Pitfalls

  • ! No native JSON output; default output includes noisy BIND statistics unless +noall +answer or +short is passed.
  • ! Unusual +option flag syntax.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI