CLI
The repo produces two binaries. Both read the same config.yaml.
dns-monitor
Section titled “dns-monitor”The main server. Runs the check loop and serves the HTMX dashboard on listen.
dns-monitor [--config PATH]| Flag | Default | Description |
|---|---|---|
--config | config.yaml | Path 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.
dns-monitor-mcp
Section titled “dns-monitor-mcp”The Model Context Protocol server. Speaks JSON-RPC over stdio; do not pipe stdout anywhere but the MCP client.
dns-monitor-mcp [--config PATH]| Flag | Default | Description |
|---|---|---|
--config | config.yaml | Path 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.