Skip to content

CLI

The repo produces two binaries. Both read the same config.yaml.

The main server. Runs the check loop and serves the HTMX dashboard on listen.

dns-monitor [--config PATH]
FlagDefaultDescription
--configconfig.yamlPath to the YAML config file.

Logs to stderr via log/slog. Exit code 0 on clean shutdown (SIGINT/SIGTERM), non-zero on config or database errors at startup.

The Model Context Protocol server. Speaks JSON-RPC over stdio; do not pipe stdout anywhere but the MCP client.

dns-monitor-mcp [--config PATH]
FlagDefaultDescription
--configconfig.yamlPath to the YAML config file.

The process opens the SQLite database at config.db_path read/write but does not run the check loop — it is a pure query and ad-hoc-resolve interface. Safe to run alongside the main server against the same database.

See MCP server for the tool catalog.