Skip to main content
Glama

BIND 9 AIops

Governed BIND 9 DNS operations with 23 MCP tools and corresponding CLI commands. It executes rndc, named-checkconf and dig as fixed argument lists without a shell. Every call is audited and budgeted by the bundled governance harness.

What it checks

  • Named service and zone status from rndc.

  • Configuration and loaded-zone validation with named-checkconf -z.

  • DNSSEC validation mode.

  • Zone DNSSEC signing, managed-key and serve-stale status; running zone configuration where enabled.

  • Recursive fetch-limit hits, DNSSEC trust anchors, DNS TCP timeouts and per-zone signing progress.

  • DNS queries with their actual DNS response code.

  • Queries against a selected secondary server.

  • Guarded secondary retransfer and single-zone NOTIFY resend.

  • Primary and secondary SOA serial comparison. A failed or unparseable query returns null, never a fabricated zero or match.

  • bind_diagnose_zone keeps individual probe failures visible.

Related MCP server: technitium-mcp-secure

Setup from source

Requires Python 3.11+, uv, and BIND 9 command utilities on the operator host. Run uv sync --dev, uv run bind9-aiops init, then uv run bind9-aiops doctor. A manual ~/.bind9-aiops/config.yaml can specify paths and a DNS server:

targets:
  - name: local
    server: 127.0.0.1
    dns_port: 53
    rndc_config: /etc/bind/rndc.conf
    named_config: /etc/bind/named.conf
    timeout: 10

Use uv run bind9-aiops diagnose example.org or uv run bind9-aiops compare-soa example.org 192.0.2.2. The MCP entry point is uv run bind9-aiops-mcp. The process account needs access to its rndc key file and BIND config, but no elevated shell is given to the agent.

Scope and verification

reload-zone, refresh-zone, flush-name, retransfer-zone and notify-zone support dry-run and two CLI confirmations. RNDC command acceptance does not prove a queued zone reload or transfer completed, so these writes report outcomeUnknown; a lost command response does too. No safe undo exists for a cache flush, retransfer, NOTIFY delivery or externally edited zone file. Zone-file editing, DNSSEC key changes and global service restarts remain outside this release. See verification. Missing features and live-environment feedback are welcome as issues or PRs.

Available Tools

23 tools
bind_compare_soaB
Read-only

[READ] Compare primary and secondary SOA serials; unknown stays null.

Inputs: zone (required), secondary (required), target.

bind_config_checkB
Read-only

[READ] Validate BIND config and loaded zone files with named-checkconf -z.

Inputs: target.

bind_diagnose_zoneA
Read-only

[READ] Correlate named, config, zone, SOA and DNSSEC probes; report failures.

Use for multi-probe zone triage; use bind_zone_status for only the live zonestatus.

Result: structured data or an explicit, sanitized operation error.

Inputs: zone (required), target.

bind_dnssec_validationB
Read-only

[READ] Check current DNSSEC validation setting using rndc.

Inputs: target.

bind_dnssec_zone_statusA
Read-only

[READ] Show DNSSEC signing status for one zone.

Use for one zone’s DNSSEC status; use bind_signing_status for signing workflow detail.

Result: structured data or an explicit, sanitized operation error.

Inputs: zone (required), target.

bind_fetch_limitsB
Read-only

[READ] Show servers and domains currently limited by recursive fetch caps.

Inputs: target.

bind_flush_nameB
Destructive

[WRITE] Flush one DNS name from cache; cache state cannot be restored.

Inputs: name (required), target, dry_run.

bind_managed_keys_statusB
Read-only

[READ] Show BIND managed DNSSEC trust-key status.

Result: structured data or an explicit, sanitized operation error.

Inputs: target.

bind_notify_zoneA
Destructive

[WRITE] Resend NOTIFY for one zone; downstream refresh remains unknown.

Result: a preview for dry_run; real command acceptance leaves downstream completion unknown.

Inputs: zone (required), target, dry_run.

bind_queryB
Read-only

[READ] Query the configured DNS server and expose its actual response code.

Inputs: name (required), rrtype, target.

bind_query_serverA
Read-only

[READ] Query a specified DNS server for a supported record type.

Use when a specific DNS server must be queried; use bind_query for the configured server.

Result: structured data or an explicit, sanitized operation error.

Inputs: name (required), server (required), rrtype, target.

bind_refresh_zoneB
Destructive

[WRITE] Ask a secondary zone to refresh; transfer completion remains unknown.

Inputs: zone (required), target, dry_run.

bind_reload_zoneB
Destructive

[WRITE] Check config and queue a zone reload; completion remains unknown.

Inputs: zone (required), target, dry_run.

bind_retransfer_zoneB
Destructive

[WRITE] Request a secondary zone retransfer; completion remains unknown.

Inputs: zone (required), target, dry_run.

bind_security_rootsB
Read-only

[READ] Show trust anchors through rndc's response channel, without a dump file.

Inputs: target.

bind_serve_stale_statusB
Read-only

[READ] Show whether stale DNS answers are currently served.

Result: structured data or an explicit, sanitized operation error.

Inputs: target.

bind_show_zoneB
Read-only

[READ] Show a running dynamic zone's configuration when enabled.

Result: structured data or an explicit, sanitized operation error.

Inputs: zone (required), target.

bind_signing_statusA
Read-only

[READ] List a zone's ongoing and completed DNSSEC signing state.

Use for the signing workflow state; use bind_dnssec_zone_status for the zone-level DNSSEC status.

Result: structured data or an explicit, sanitized operation error.

Inputs: zone (required), target.

bind_statusA
Read-only

[READ] Get named service status from rndc.

Inputs: target.

bind_tcp_timeoutsB
Read-only

[READ] Show current DNS TCP timeouts without changing them.

Result: structured data or an explicit, sanitized operation error.

Inputs: target.

bind_zone_statusB
Read-only

[READ] Get BIND's live zonestatus for one zone.

Result: structured data or an explicit, sanitized operation error.

Inputs: zone (required), target.

undo_applyA
Destructive

[WRITE][risk=medium] Apply a recorded undo by dispatching its inverse tool.

The inverse runs through its own governed tool, so it is audited under its own risk tier. Pass dry_run=True to preview the inverse call without executing it. A token can only be applied once.

Args: undo_id: The undoId from undo_list (or an _undo_id in a write result). dry_run: If True, preview the inverse tool + params without running it. target: Passed through to the inverse tool when it accepts a target.

Inputs: undo_id (required), target, dry_run.

undo_listA
Read-only

[READ] List recorded, not-yet-applied undo tokens (most recent first).

Each entry names the original tool, the inverse tool that undo_apply would run, and a human note. Use the undoId with undo_apply.

One extra row is read so truncated is measured rather than guessed from the row count matching the limit; when it is true, older tokens exist.

Each entry carries effectVerified. False means the original write lost its response, so the change it reverses is PROBABLE, not confirmed — check the live state before applying, and do not report the result as a restore of a state that may never have been reached.

Args: limit: Max rows to return (default 50, capped at 500). target: Unused (undo state is host-local); accepted for CLI uniformity.

Inputs: limit, target.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools target a distinct resource+action, and the descriptions explicitly cross-reference the near-duplicates (bind_signing_status vs bind_dnssec_zone_status, bind_query vs bind_query_server, bind_zone_status vs bind_diagnose_zone). A few pairs remain close — bind_status vs bind_zone_status, and the cluster of DNSSEC read tools — but the guidance in the descriptions is enough for an agent to pick correctly.

    Naming Consistency4/5

    All tools use snake_case with a bind_ prefix, and the undo_* pair stands apart cleanly as a cross-cutting subsystem. The only minor deviation is that some names are noun phrases (bind_tcp_timeouts, bind_fetch_limits, bind_security_roots) while others are verb_noun (bind_show_zone, bind_notify_zone), but the style is uniform and readable.

    Tool Count3/5

    23 tools is on the heavy side for a BIND operations server; the read surface is broad (timeouts, fetch limits, trust anchors, serve-stale, managed keys) and several status probes are only marginally distinct. Each tool does map to a real rndc/named-checkconf primitive, but consolidation into fewer parameterized status/diagnose tools would have been reasonable.

    Completeness4/5

    The set covers diagnosis, zone lifecycle writes (reload, refresh, retransfer, notify), cache flush, config validation, and a genuine undo mechanism for the risky writes — a coherent ops surface. Gaps exist around configuration editing, service restart, and zone creation/deletion, but these are workable omissions for a diagnostic-focused server.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A security-hardened MCP server for managing Technitium DNS Server via its HTTP API. It provides 20 tools for DNS zone management, record configuration, and server diagnostics with built-in protections like rate limiting and read-only modes.
      39
      13
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A local MCP server for safely managing Control D DNS by conversation, enabling inspection of profiles and endpoints, diagnosing blocked queries, and creating/deleting rules with confirmation and read-back checks.
      15
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes 24 stateless domain and network diagnostic commands as MCP tools, providing the same evidence as the dug.sh web app and curl endpoints.
      1
      MIT