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

kdig (Knot DNS)

$ kdig Foundation Low Risk
CZ.NIC · Browser & Web · GPL-3.0 · macos / linux

kdig is Knot DNS's feature-rich DNS diagnostic client supporting UDP, TCP, DNS-over-TLS (+tls), DNS-over-HTTPS (+https), DNS-over-QUIC (+quic), EDNS Client Subnet, and DNSSEC validation. Provides +short for concise scripting and clean ANSI-free text output.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install knot
CLI vs MCP Decision CLI Only

Direct read-only DNS diagnostic binary supporting DoT/DoH/DoQ protocols (kdig +tls, kdig +https); faster and more faithful than any MCP wrapper.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Non-interactive, ANSI-clean stdout, and +short concise output mode, though structured output is zone-file text rather than native JSON.

  • +short emits minimal line-oriented answers
  • Outputs BIND/zone-style text rather than JSON
Trust & Safety 24 / 25

Strictly read-only DNS client with support for encrypted and authenticated DoT/DoH/DoQ resolvers.

  • Read-only DNS queries; supports TLS/HTTPS/QUIC transport encryption
Setup & Portability 11 / 15

Available on macOS (brew install knot) and Linux (knot-dnsutils), though installing via Homebrew pulls the full Knot DNS suite and Windows is unsupported.

  • Requires brew install knot on macOS or knot-dnsutils on Linux
Utility & Efficiency 13 / 15

Supports modern DoT, DoH, DoQ, PROXYv2, and EDNS extensions in one fast C binary.

  • Native +tls, +https, +quic, and +dnssec flags
Maintenance & Lineage 9 / 10

Maintained by CZ.NIC (CZ-NIC/knot), the Czech ccTLD registry and Knot DNS foundation.

  • Official CZ.NIC CZ-NIC/knot repository (GPL-3.0)
Docs & Verifiability 9 / 10

Detailed kdig(1) manual page and comprehensive kdig -h reference.

  • Official man_kdig.html docs and kdig -h

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication credentials required; reads system CA certificates when validating +tls or +https resolvers.

Side Effects
Read-Only
Cost & Quotas

Free, GPL-3.0 open-source C utility from CZ.NIC.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# kdig Agent Rules
- Use `+short` when only the resolved record value is needed in scripts.
- Pass explicit `+tls` or `+https` with a trusted resolver IP/hostname when testing encrypted DNS resolution.

Agent-Ready Command Recipes

Safe Read-Only Queries

Query DNS over TLS (DoT) against Cloudflare
kdig +tls @1.1.1.1 example.com A AAAA

Resolves A and AAAA records over encrypted DNS-over-TLS (+tls) on port 853.

Query concise TXT records over DNS-over-HTTPS
kdig +https @dns.google example.com TXT +short

Fetches TXT records via DoH (+https) and prints only answer values (+short).

Strengths for Agents

  • + Supports DoT (+tls), DoH (+https), and DoQ (+quic) natively without external wrappers.
  • + +short and clean text output make simple lookups easy to consume in scripts.

Caveats & Pitfalls

  • ! Outputs zone-file text rather than JSON; prefer doggo --json or dnsx -j when JSON is required.
  • ! macOS installation (brew install knot) installs the entire Knot DNS server package alongside kdig.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI