github paimonsoror/telltaledns v0.4.0
TelltaleDNS 0.4.0

latest releases: edge, v0.9.0, v0.8.1...
one month ago

An observability and operations release: see what your network is reaching, hold DNS to targets you set, and try a change against your real traffic before you make it.

Highlights

  • Traffic map. A new page under Monitor answers "what is the network reaching right now?" in one picture: a tile per service, site, or name, sized by how often it was looked up this hour, blue for answered and red for blocked. It refreshes every 5 seconds, rings the tiles growing fastest, and opens any tile's names in the query log. It reads the same top lists as the dashboard, so it adds no work to answering queries.

  • What would this have done? Before you save a quick rule, a list, a group change, a device move, or an upstream change, replay the query log with it: the last day's queries are decided again with and without the change, and you see what would have been newly blocked, newly allowed, sent to another upstream group, or answered differently, by name, device, and group, with the rule or list that decided. Only the changed lists are compiled, and DNS never waits for it. It's a button in the UI, simulate=24h on any dry run, POST /api/v1/simulate and telltale config simulate for a whole configuration (test a Git commit before pushing it), and simulate_change for agents. In a cluster every node replays its own log.

  • What is this device? The Clients page says what each address looks like ("Looks like a Roku player"), from its maker (the IEEE registry), the name it announces, and the domains it talks to, scored against a catalog of 45 common home devices that ships with TelltaleDNS. The guess fills in the naming form, and a group that lists the kinds of device it's for (device_classes = ["camera", "plug"]) is suggested for them. Nothing is named or moved on its own; set "What it is" on a device to correct it. Agents get identify_device.

  • Service-level objectives. Targets for answers that work (not SERVFAIL, 99.9% by default) and answers that are quick (99% within 250 ms), each with an error budget over 30 days and burn rates from 5 minutes to 3 days. A fast burn turns the health icon amber and can alert (slo_burn), while one failed lookup on a quiet night doesn't. In the dashboard's Advanced view, GET /api/v1/stats/slo, slo_status for agents, and Prometheus recording rules and alerts in the Helm chart with the same definitions.

  • Asked like a device would. Every node asks each of its listeners a question over UDP, TCP, DoT, DoH, or DoQ every 30 seconds, plus any address you add (a load balancer in front), and watches each TLS certificate's expiry. A listener that stops answering, or a certificate within 14 days of lapsing, shows on the health icon, in metrics, and can alert. Settings → System → Listener checks.

  • Try a list before it blocks. A list with mode = "shadow" is compiled but never blocks: the Lists page shows what it would have blocked (names, devices, how often), so you can judge it first. Blocked names that devices keep retrying, or that someone allowed right after a block, are listed as likely over-blocking, with the list that decided.

  • A second opinion on upstreams. Per upstream: DNSSEC verdicts and the error codes it attaches to answers (Blocked, Censored, Filtered mean it filters). Optionally ([upstream_check] sample_every, off by default), a sample of forwarded questions is asked again of another upstream and the answers compared, both shown side by side.

  • From a spike to the query. The latency histograms on /metrics carry OpenMetrics exemplars: click a dot in Grafana and its trace ID opens that query in the query log. Sampled and slow queries can go to your tracing backend as OpenTelemetry traces with the same ID ([telemetry.otlp] traces_sample_every, traces_slow_ms).

  • Is the cache the right size? Each node estimates what a cache 25%, 50%, or 100% larger would have answered, from a small sample of names asked again after they were evicted, and says whether to grow it, shrink it, or leave it (Cache page, cache_advice, metrics).

  • Expired answers as fast as fresh ones. With [cache] stale_answer_client_timeout_ms = 0, a name whose cached answer just expired is answered at once and refreshed after the reply has gone out. It has its own status, refreshed, and at low load its p99 dropped from about 250 µs to 50 µs. The dashboard's cache tile counts fresh, refreshed, and stale answers as one number; the Advanced view splits them.

  • Only what matters. [exclusions] keeps names (with their subdomains) and devices out of the query log, live view, top lists, anomalies, and exports while they're still answered and counted in Prometheus: uptime monitors, connectivity checks, time servers. Settings → Query handling, or your Git configuration. A URL list whose content hasn't changed in 30 days (stale_after_days) is flagged as stale.

  • Staged rollouts and pins. In a cluster, a configuration change can reach canary nodes first (node IDs, a site, or the Kubernetes resolver pods) and every other node after a bake time, if their SERVFAIL share stays normal. A failed bake pins the cluster to the version before. You can pin to an earlier version by hand and unpin. Off until you name canaries: Settings → Cluster → Staged rollouts, [cluster.rollout], or the Helm chart's rollout values.

  • Maintenance mode. Before swapping a Pi's SD card or moving a box, put the node in maintenance (Cluster page, telltale ctl maintenance start, the API, or an agent with ops:maintenance): for a set time it reports not ready, so load balancers move away, keeps answering whatever still arrives, and is left out of alerts, the health level, and elections. Under automatic failover, the primary hands its role to another node first.

  • Also new: NSID, so dig +nsid names the node or pod that answered ([dns] nsid); no IPv6 addresses for a group (filter_aaaa); tabs on the long Cluster, Settings, and Clients pages (a tab with a problem in it says so); router integrations verify a self-signed console by the name in its certificate (tls_server_name); and task guides on the project site, from building a cluster to changing things safely.

Fixes

  • Cluster charts in Kubernetes lost history. Once a cluster had sent a few MB of minutes to the primary, its charts dropped the history of nodes that weren't online, and the primary logged rollups: state database: disk I/O error every few seconds. The database needed a temporary file for a sort, and the image's read-only filesystem has none. Temporary data now stays in memory, and the query uses an index instead of a sort.
  • Settings editors on cluster nodes said "None yet" for upstreams, lists, and other settings that came from the primary.
  • The phone menu now closes on any link, a tap beside it, or Esc.

Upgrading from 0.3.0

Most installs need no change. Check these if they apply to you:

  • Upgrading a cluster: upgrade replicas first, then the primary, and upgrade every node before you use a new shared setting (exclusions, staged rollouts, simulation, device identification, listener checks, SLOs). A node still on 0.3.0 refuses a configuration with settings it doesn't know, keeps the one it had, and logs upgrade this node. A 0.3.0 node also doesn't take part in simulations (it's listed under missingNodes).
  • New checks are on by default. Listener checks ([probe]), SLOs ([slo]), and stale-list warnings ([filter] stale_after_days = 30) can turn the health icon amber and can alert. Turn any off with enabled = false (or stale_after_days = 0). Probe queries never reach the query log or the statistics. Device identification is on too ([identify] enabled); it only suggests.
  • Prometheus: /metrics answers in OpenMetrics, with exemplars, to scrapers that ask for it (Prometheus does). Set [telemetry.metrics] exemplars = false to always serve the plain text format.
  • Dashboards and alerts on cache status: with stale_answer_client_timeout_ms = 0, expired answers given at once are now refreshed, not stale, in telltale_queries_total and the query log. stale now means only that upstreams failed or were slow.
  • Helm chart: with prometheusRule.enabled, the chart now adds SLO recording rules and burn-rate alerts (prometheusRule.slo.enabled: false to skip). Keep their targets equal to the nodes' [slo] settings.
  • Agent tokens: simulating needs the querylog:read scope as well as the change's own. New scopes: config:write:exclusions, config:write:simulate, and ops:maintenance.
  • Scripts reading /readyz: the status codes are unchanged (200 ready, 503 not); the body is now JSON with the reason ({"ready":false,"reason":"maintenance"}) instead of ready/not ready. The Helm chart's startup probe asks /readyz?startup=1.
  • Dashboard: the Service level, Where time goes, Upstreams, Upstream exchanges, and traffic-by-group cards are in the Advanced view (the switch at the top). Problems still reach everyone through the health icon and alerts.

Known issues

  • DNSSEC validate mode: right after a start, an upstream that closes fresh DoT connections can make the first validations fail, so a signed name may get SERVFAIL until its keys are cached. Keep permissive or off for now; see ADR-098.
  • _dns.resolver.arpa (encrypted-DNS discovery) is forwarded upstream instead of being answered locally.

For developers

  • New ADRs: 105–124. ADR-115 amended (the comparison re-decides the configuration in effect; the result is simulation; refused rows are replayed; no new heartbeat field).
  • New MCP tools: simulate_change, identify_device, slo_status, probe_status, cache_advice, upstream_checks, shadow_lists, overblocking_suspects, rollout_status, plan_set_exclusions, plan_pin_version, plan_unpin, start_maintenance, end_maintenance.
  • The site's traffic map and dashboard screenshots come from the made-up demo network (ui/tests/demo/run.sh).

Full Changelog: v0.3.0...v0.4.0

Don't miss a new telltaledns release

NewReleases is sending notifications on new releases.