github paimonsoror/telltaledns v0.9.0
TelltaleDNS 0.9.0

37 minutes ago

A release that gets the web UI ready for other languages, with a first draft in Simplified Chinese; DoH that sees each client's own address behind a reverse proxy; a per-upstream switch for the loop-detection option; a finding of its own for a device that sweeps your network's reverse names; private reverse lookups forwarded only by a route; and DNSSEC validation that serves answers in chain order and asks another upstream about a bogus answer. It also includes the fixes of 0.8.1.

Highlights

  • The web UI is ready for other languages. The web UI's own text, on every page, goes through a small translation layer of the project's own, with no new dependency and English built in as the key. No language is offered yet: the first language, and a setting to choose it, come later. A reader of English downloads no language file, and the in-app help, API problem text, alerts, logs, the CLI and the documentation stay in English. Names, addresses and other data on the pages carry translate="no", so a browser's own translator leaves them as they are. To see the layer at work, put ?lang=en-XA before the # (http://<server>:8053/?lang=en-XA#/): that one page load shows a pseudo-language (accented, longer English), and nothing is stored. See ADR-189.

    • A first draft in Simplified Chinese (zh-Hans, from snnh's translation in #101, completed in #118) ships with this build: nearly all of the text, with a few newer messages still in English. It isn't offered, so a browser set to Chinese still gets English; ?lang=zh-Hans before the # shows it for one page load.
  • Test a language pack. For translators: Settings → Account → Test a language pack (in the Advanced view) gives a template for a language tag (de, pt-BR, zh-Hant: every English text of this build) and notes for translators. It checks a translated file with the same rules as the project's own check and lists what breaks a rule, what is missing and what is left over. After a confirmation, Use this pack… shows the web UI in that language, and Download for a pull request gives the file in the exact form the project keeps.

    • The file stays in this browser, for this address: nothing about it is sent to TelltaleDNS, kept on a node, copied to other nodes, backed up or written to the audit log. It shows only for the user who loaded it, with an English banner above every page that names the file. The sign-in, setup and two-factor screens stay in the usual language unless you ask for the pack for one page load (the exceptions, around signing out, are under Known issues).
    • It is removed at the next page load after another build of the web UI or the server is installed (an upgrade, a rollback or a downgrade; after a server-only one, at the first page after you sign in), 7 days after it was loaded, or with Remove.
    • A pack can make a label say something other than what its button does: load only a pack you made or one from someone you trust, and other people's packs only on a test installation.
    • The project site's page Write a language pack walks through all of it, from the template to the pull request, with examples, and CONTRIBUTING.md has a section on translations. See ADR-190.
  • DoH behind a reverse proxy. A TLS doh listener can take each client's address from the proxies you list, so the access list, the rate limit, groups and devices, the query log and dnstap see the client, not the proxy. With trusted_proxies = ["10.0.5.20/32"] only those addresses connect, and the client comes from the PROXY v2 header (proxy_protocol = true) or from the rightmost X-Forwarded-For entry that isn't a listed proxy (x_forwarded_for = true). Nothing is answered without a client's address: a LOCAL or address-less PROXY header, a missing or unreadable X-Forwarded-For and a loopback or unspecified client are refused (closed, or 403), so point the proxy's health check at a TCP connect or the web UI's /livez. Behind x_forwarded_for, client IDs come from the URL path only and the probes skip the listener (use [probe] targets). Refusals are counted in telltale_doh_forwarded_refused_total{reason} and logged at most once a minute per listener and reason. From Cheebun's and Gael's requests (#91). See ADR-194 and "Behind a reverse proxy" in the running guide.

  • An upstream can go without the loop-detection option. A few resolvers drop every query that carries an EDNS option they don't know, such as the one (code 65429) that catches a query coming back to this node. loop_tag = false on such an [[upstream]] leaves it out of its queries, its health checks and its own bootstrap lookups. It hides a loop rather than fixing it, so it is refused toward this node (loopback, localhost, a [[listen]] address on any port) and on recursive://. In a cluster, see Upgrading. From Cheebun's report (#111). See ADR-192.

  • A sweep of local addresses is a finding of its own. A device that looks up the reverse names of many addresses on your network (network scanners do, and so do some TVs and NAS boxes, often once an hour) raises Sweep of local addresses (reverse_sweep): in one minute, its reverse lookups of private addresses clear the burst check's own bar (at least 30 NXDOMAIN answers and at least half of those lookups, by default) with at least 16 different names answered NXDOMAIN. Burst of failed lookups (nxdomain_storm) is then judged on the device's other lookups, so you can mute the sweep for that device and still hear about a real burst from it. A sweep counts and alerts like a burst, at most once an hour per device, with no new setting. If you muted such a device before, see Upgrading. From Michael Roughton's report (#90). See ADR-186.

  • _dns.resolver.arpa is answered here. The name a device asks to discover an encrypted resolver (RFC 9462) gets NOERROR with no records from TelltaleDNS itself, in every DNSSEC mode, and doesn't leave your network: your upstreams' own discovery records don't reach your devices, and a device goes on asking TelltaleDNS as before. A local record answers first, a [[route]] whose match_suffix is resolver.arpa (or a name below it) forwards it, and [special] resolver_arpa = false turns this off. TelltaleDNS doesn't advertise encrypted endpoints of its own there yet. From airart320's report (#77). See ADR-187.

  • DNSSEC validation ([dnssec] mode = "validate" or "permissive"; the default is off), on cache misses only:

    • A validated answer is served in the order of its chain: each name's CNAME, then its target's records, and a DNAME just before the CNAME made from it. Stub resolvers that read a chain from the top (glibc's getaddrinfo, and so apt, cargo and rustup) find the address. From Michael Roughton's pull request (#79), with changes made on top.
    • A "no such name" or "no such record" behind a CNAME (www.paypal.com AAAA) is validated one link at a time and served with the weakest link's verdict: secure (with AD), or insecure when a link is in a zone proven unsigned; at most 8 links, and 4 such validations at once. Every wildcard answer in a zone signed with NSEC is checked against RFC 4035 §5.3.4, so an answer from a wildcard right above the name validates (nasa-gov.go-vip.net A). From Michael Roughton's pull request (#99), with changes made on top. See ADR-188.
    • An answer with records is secure only when it reaches its question (the asked type at the name or at the end of its CNAME chain, or a signed proof that that name has none); otherwise it is served without AD, counted as indeterminate, and kept 300 s at most (ADR-195).
    • A bogus answer is validated once more through the group's other upstreams, never through the one that answered, when another upstream's breaker is closed and time is left; only a secure or insecure answer replaces it. When that runs past the client's wait, the client gets SERVFAIL with EDE 22 instead of EDE 6. Counted in telltale_dnssec_retries_total{result="served"|"bogus"|"failed"}. From Michael Roughton's report (#107). See ADR-201.
    • telltale_stage_duration_seconds{stage="dnssec"} shows the validation's own time, which is part of stage="upstream", and when a client's wait ends while its validation still runs, the SERVFAIL's EDE 22 says "validation still running" (ADR-202). A denial that the validation library judges insecure proves its zone unsigned once, so the next names there skip validation for up to 15 minutes (ADR-203). Both from airart320's report (#112).
    • Each upstream group's validation cache keeps at most 8,192 record-set proofs, about 13 MiB (ADR-196).
  • A witness is treated as the voter it is. What covers the whole cluster (the dashboard, the query log, top lists, the live tail, pausing blocking, the cache's table and flushes, drills, simulations, a cluster support package) never asks a witness, which holds no data, and never lists it as a node that didn't answer. The Cluster page shows it as votes only, and the in_sync and serving checks and the sync_lag alert leave it out; a witness that is down still fails the peers_up check and raises the node-down alert. From Michael Roughton's pull requests (#89, #97), with changes made on top.

  • A quick rule that follows the device. In the query log's Why? drawer, when the quick rule form holds a bare address and a router reports one MAC address for it, the form offers an operator Name this device… by that MAC, so the rule follows the device (#95).

Fixes

  • Changes in the web UI and the API are checked against the configuration the node applies: its config files (on a primary promoted after a failover, the cluster version it continues from), everything stored through the UI and the API, and the change. One that would stop what is stored from applying, such as a rename that keeps an address another device still has, is refused with the reason, and nothing is stored; a stored device that isn't in effect can be deleted. While what is stored doesn't apply, only a change that fixes it (or deletes such a device) is accepted, and the log names the stored devices. From Gael's report (#113). See ADR-191.
  • Reloads: a change of groups only (a group's own upstreams or priority, a new or renamed group) applies on the reload, and the upstreams keep their health and connections (ADR-204). A [[listen]] entry that can't bind (a busy port, an address the machine doesn't have, a missing certificate file) stops no other change, and its protocol keeps every listener the reload would have closed; a replaced listener's new certificate files are read before the old one closes. The log names each failure and each listener kept, then lists what serves (ADR-200).
  • Counters and schedules follow their group across a reload: telltale_group_queries_total and telltale_blocked_total keep each group's counts under its name, each group's schedule stays with it, and telltale_upstream_duration_seconds follows the upstream's name. From airart320's report (#108).
  • An idle upstream that recovered is used again within about a minute of its backoff ending: a health check is then the probe that closes its breaker. From Greg Pakes's report and pull request (#116, #117). See ADR-198.
  • When a shared upstream request gets no answer, every question waiting on it gets the failure's answer (a stale answer where one may be served, otherwise SERVFAIL), and the request is tried once more within their time if at least 100 ms is left (ADR-197).
  • The live tail opens at once in Firefox. From snnh's pull request (#105).
  • A DNS port that is taken (Address already in use) or refused says what to do: how to find the program that holds it, and [[listen]] on this machine's own address to run beside it.
  • Lists show every row when two of their items read alike: two nodes that show one name (on the Upstreams, Cache and Alerts pages, in a drill's report and in a cluster support package), two names that read the same in a top list, on the traffic map or on the wall map, a domain forwarded twice, a group a device lists twice, or a warning the server repeats. Each row keeps its own details and buttons.
  • Change markers on a busy chart (over 40 changes in view): markers that land on the same spot are one button, and its count covers them all.
  • The Flow page: a group named other keeps its link to Groups, its count and its place.
  • Docs: different answers per network (split horizon), port 53 already in use, and running on a router or firewall (FAQ).
  • Dependencies: hickory-net and hickory-proto 0.26.4 (from Michael Roughton's pull request #106), jiff 1.0.1 (the time zones of schedules) and Svelte 5.59.1.

Upgrading from 0.8

The same steps from 0.8.0 and from 0.8.1. Most installs need no change. Check these if they apply to you:

  • Clusters: upgrade replicas and resolver pods first, then the primary, as for any release. Until a node is upgraded it forwards _dns.resolver.arpa, sends private reverse lookups to a group's own upstream servers (below), and counts a sweep as a burst of failed lookups, so one sweep can show twice: as a burst from an older node and as a sweep from a newer one.
  • Private reverse lookups (20.1.168.192.in-addr.arpa) are forwarded only by an explicit [[route]], not by a group's own upstreams ("default" included): the group's devices get NXDOMAIN for them, as every other device does. If those servers know your network's names (your router, an office resolver), add a route for the group:
    [[route]]
    match_group = ["Office"]       # the group
    match_qtype = ["PTR"]
    upstream_group = "office"      # the group's `upstreams`
    With [dnssec] mode = "validate", route the reverse zone instead (match_suffix = ["168.192.in-addr.arpa"], same match_group) with dnssec_nta = true, or use Send a domain to another server in the web UI (for every device). telltale config check warns about a group whose servers are all at private addresses and names the route; add it before a rolling upgrade for the same answers from every node. A device there that asks its neighbours' reverse names can now raise Sweep of local addresses. [special] private_ptr_nxdomain = false turns off the NXDOMAIN answer for private reverse lookups altogether: every device's then go where its other names go, the default upstreams included. The query log shows these lookups as special, and Explain says when a group's own servers chose the upstream group. From airart320's report (#114). See ADR-199.
  • An upstream that refuses the health check (it asks . NS: an authoritative-only server, or a router that answers FORMERR) now stays benched longer on a node with few queries, since each check is the probe that closes its breaker. DNS isn't affected (a group of one still answers through it), but upstream_group_down stays severe and a drill refuses to start while it does. Make such a server a stub zone (stub_zone, or "stub": true through the API), whose check asks the zone's own SOA. See ADR-198.
  • A mute made for a sweep. A mute that lists nxdomain_storm keeps meaning exactly that: it covers the device's real bursts of failed lookups, and its sweeps count again. Change the mute's kinds to reverse_sweep (or add it). On such a sweep the Anomalies page shows an operator or administrator the mute it names, with Mute for this device… (the sweep ticked) and Remove for the old mute; for a mute in your files, it says to change its kinds there. If you raised nxdomain_per_minute to quiet a sweep, set it back and mute the sweep instead. An Alertmanager silence on kind="nxdomain_storm" doesn't cover kind="reverse_sweep".
  • Name reverse_sweep in a mute only once every node runs 0.9, on the page, through the API or in your files. A node on an older version refuses a shared configuration that names it: it keeps serving the last version it took (DNS isn't affected), takes no later shared change until it is upgraded or no mute names the kind, and logs cluster configuration not applied (will retry) with unknown variant `reverse_sweep` every few seconds; its sync_errors check and telltale_cluster_sync_error say the same. An older build won't start with it in its own file.
  • [[upstream]] loop_tag (new, default true) is shared and written only when false. Set it (in a file or through the API) only once every node runs 0.9: a node on 0.8 refuses a shared configuration that has it, keeps serving the one it has, and takes no later change until it is upgraded or the key is removed; an older build won't start with it in its own file, true or false. A replica also refuses loop_tag = false toward its own [[listen]] address.
  • [[listen]] trusted_proxies and x_forwarded_for (new; none and false by default) are written only when set and never shared, so mixed versions are unaffected: set them on each node's own listener. An older build refuses a file that has them (it doesn't start; a reload keeps the running configuration).
  • _dns.resolver.arpa behind your routes. A route for arpa (every reverse lookup to your router, say) or for ., a group's own upstreams, and a route without a suffix leave it answered here. To forward it, add a route whose match_suffix is resolver.arpa.
  • [special] resolver_arpa (new, default true) is shared by the cluster and applies without a restart. Don't write it into a node's own file, true or false, until every node is upgraded: an older build won't start with it there, and an older replica refuses a shared configuration that has it. The primary shares it only when it is false, so at the default older nodes aren't affected.
  • DNSSEC and the AD bit. With DNSSEC on (validate or permissive), only answers validated by TelltaleDNS carry the AD bit; answers fetched without validation, answers to clients that set CD, and names under a negative trust anchor (a route with dnssec_nta = true, such as a domain sent to another server in the web UI, sets one) never do. With DNSSEC off, the upstream's AD bit is kept for clients that ask. A reload that changes [dnssec] mode empties the cache, and one that adds or removes a negative trust anchor drops the cached names under it. An entry in negative_trust_anchors that isn't a domain name is left out, with a warning; write internationalised names in their xn-- form.
  • [cache] persist = true: the first start after the upgrade begins with a cold cache, since the dump's fingerprint now covers the DNSSEC mode and negative trust anchors; a restart that changes either starts cold too. Restored entries follow the [cache] settings in force (a lowered max_ttl bounds them, and an entry past it isn't loaded).
  • The web UI and the API behind a proxy ([api] trusted_proxies): the client is the rightmost X-Forwarded-For entry that isn't a listed proxy, and an entry that isn't a bare IPv4 or IPv6 address (with a port, in brackets, a word such as unknown) stops the search there: the client is then the proxy. The log says so at most once in ten minutes, naming the proxy: make it write bare addresses.
  • Docker: reload with sudo kill -HUP "$(docker inspect -f '{{with .State.Pid}}{{.}}{{end}}' telltale)", not docker kill -s HUP, which marks the container as manually stopped so that restart: unless-stopped doesn't start it after a reboot (docker restart telltale clears the mark). From Michael Roughton's report and pull request (#102, #103).
  • Metrics: new telltale_doh_forwarded_refused_total{reason}, telltale_proxy_protocol_no_address_total{kind}, telltale_dnssec_retries_total{result}, stage="dnssec" in telltale_stage_duration_seconds, and kind="reverse_sweep" in the anomaly counters. Queries counted just after a reload under a group number that no longer exists are one group="other" series with shared="true" (filter on shared!="true" to keep a group named other apart), and telltale_blocked_total writes each label set once. telltale_dnssec_validation_total counts each question once; telltale_upstream_dnssec_total credits the upstream that answered it. The Grafana dashboard gains two Transports panels and the DNSSEC stage.
  • API and MCP: a finding's kind can be reverse_sweep, a counted sweep can carry stormMute (a mute that covers the device for nxdomain_storm only), and plan_set_anomaly_mute offers the kind. Explain's route gains source (route, group_upstreams, default). DELETE /api/v1/clients/{name} removes a stored device that isn't in effect, and answers 422 when a quick rule still names the device; on a primary promoted from replica, the devices, local names, forwarded domains and quick rules of the version it builds on are read-only (409). An agent token's Idempotency-Key values are its own. missingNodes never lists a witness, and the passing in_sync and serving summaries read "Every reachable node that serves DNS …". No MCP tool is added; the Helm chart's values and templates are unchanged.
  • Going back to 0.8: first take reverse_sweep out of the mutes in your files, resolver_arpa out of [special], loop_tag out of every [[upstream]] (in your files and in upstreams made through the API), and trusted_proxies and x_forwarded_for out of every [[listen]] (a mute made on the page or through the API is skipped by 0.8, with a warning). Anomaly baselines saved after a sweep was found can't be read by 0.8, so its devices learn again for 7 days; with [cache] persist = true the first start on 0.8 is cold. DNS isn't affected.

Known issues

  • After a failover in a cluster (a drill, a maintenance handover or an election without a restart), the node that stepped down can keep serving the configuration it had: it logs cluster configuration not applied (will retry): fetching from the primary: not connected to the primary every 2 s until it restarts or is elected again. DNS keeps answering. Restart that node (with two eligible nodes, maintenance on the current primary also works: it moves the role back to that node). A fix is planned; see #121.
  • After a failover or a drill (also once the role moves back), the primary builds on the cluster version it took over: the devices, local names, forwarded domains and quick rules in that version can't be changed in the web UI or the API (409), and the shared sections of that node's own file are ignored, without a log line. There is no supported way around it yet (ADR-191, #121).
  • A first lookup with full recursion and validate can take longer than the client's wait (2.1 s by default): the client gets SERVFAIL with EDE 22 "validation still running", and the answer is cached for the next question. telltale_stage_duration_seconds{stage="dnssec"} beside stage="upstream" shows which part takes the time (#112). stage="dnssec" is part of stage="upstream".
  • Plain-HTTP DoH for a proxy on the same host (no second TLS hop, or a Unix socket) isn't available yet: a doh listener always needs tls (#91).
  • Two nodes that show one name (a node is shown by its pod's name, else its site, else its ID, and a node's site is default unless you gave it one) can't be told apart where the web UI picks a node by that name, such as the node choice on the Cache page: choosing either acts on the same one (the node you are connected to, else the one with the lowest ID). In the API, a node's ID always picks that node.
  • Sign out waits for the server's answer to the first click, with no time limit: another click while it waits sends nothing, so if the answer never comes, reload the page and sign out again. With a test language pack in use, a sign-in page drawn meanwhile (a session that ends while it waits) can show the pack's text until that answer comes, and so can the sign-in page shown after a sign-out at a sign-in provider, until the browser leaves for the provider.
  • For translators: a test pack can't translate everything yet. Words the server sends are shown as it sends them; a few sentences are built from several messages and some counts have one form only, so they can't always read naturally in another language; with text about a third longer, some pages are wider than a 360 px phone screen; and right-to-left layout is still to come.
  • The other known issues in the 0.8.0 notes still apply, except the one about _dns.resolver.arpa.

For developers

  • New ADRs: 186–192 and 194–204 (there is no ADR-193); 195 is Accepted, the others Proposed. Amendments under ADR-034, ADR-039, ADR-050 and ADR-136, and notes under ADR-098 and ADR-184. ADR-174's known leftover is closed: the drill-report alert reads through the bridge with a 3 s deadline (federated_bridge::read_within). New requirements API-012 (P1) and API-013 (P2); roadmap M28 to M31 (T31.2, plain-HTTP DoH, is open).
  • Languages: the layer is ui/src/lib/i18n/ (tr(context) gives t, tn and m; <T> renders a sentence with markup), and the Languages section of ui/README.md is the guide. From ui/, with Node 24 (or 22.18 and later): npm run check:i18n, and node scripts/i18n.mjs sync <tag>, carry, report, baseline and plurals. The check fails literal text, an Intl call outside lib/format.ts and a new physical CSS property; node scripts/i18n-codemod.mjs moves a file's text behind t(). The first pack is ui/src/locales/zh-Hans.json, offered: false in manifest.json (only ?lang= reaches it). ADR-189's 80% rule for offering a language is written down; no release step applies it yet.
  • Budgets: npm run build enforces 400 KiB gzipped for the UI with English (everything outside assets/locales/), 80 KiB per language, 400 KiB for all languages, and 64 KiB for the translators' template. The UI is about 340 KiB now (about 21 KiB of it the language-pack code, loaded only when used); the template is about 29 KiB.
  • UI: the language-pack card is ui/src/lib/devpack/, with ui/src/lib/i18n/pack.ts (the parser, the shipping function and the agreement rule, shared with the check script); lists whose values can repeat are keyed by place or with ui/src/lib/keys.ts; ui/tests/e2e/page-errors.ts makes a page error fail a test. CI's ui job runs check:i18n, and the two browser jobs install the full Chromium.
  • Tests and tools: deploy/doh-e2e.sh (DoH against a running node) in the native CI job; the DNSSEC question budget (dns_011_offline_question_budget_* in crates/telltale-upstream/tests/dnssec_offline.rs) and make bench-dnssec (bench/README.md); a nightly run of names from public reports through the validator (deploy/dnssec-names-e2e.sh); four new nightly fuzz targets, forwarded_for, cluster_frames, cache_dump and proxy_header, with seeds in fuzz/seeds/.
  • The DoH design note is docs/design/doh-behind-a-proxy.md.
  • New: CONTRIBUTING.md (how to help, the checks, pull requests, translations, credit) and SECURITY.md (how to report a problem privately). The release workflow opens a pull request that moves main to the next version (docs/releasing.md).

Thanks

Michael Roughton for the pull requests behind validated answers in chain order (#79), a witness treated as the voter it is (#89, #97), denials behind a CNAME and wildcard answers that validate (#99), hickory 0.26.4 (#106) and reloading in Docker (#103), and for the reports behind them (#78, #88, #96, #98, #102), behind sweeps of local addresses (#90) and behind a bogus answer validated again at another upstream (#107); Greg Pakes for the report and the pull request behind an idle upstream used again once it recovers (#116, #117); snnh for the live tail in Firefox (#105) and the Simplified Chinese translation (#101, #118); airart320 for the reports behind _dns.resolver.arpa answered here (#77), counters that follow their group (#108), DNSSEC stage timing and unsigned zones remembered (#112), and private reverse lookups kept on your network (#114); Cheebun for the reports behind loop_tag (#111) and DoH behind a reverse proxy (#91); Gael for the report behind the device change check (#113) and for describing a proxy setup (#91); Vijayakumar for the DNSSEC report on a signed CNAME into an unsigned zone (#115).

What's Changed

  • fix(dnssec): serve validated answers in CNAME-chain order [DNS-011] by @rough-ton in #79
  • fix(cluster): reads that fan out don't ask witnesses [CLU-002] by @rough-ton in #89
  • fix(cluster): a witness is not behind or not serving [CLU-002] by @rough-ton in #97
  • fix(dnssec): denials behind a CNAME and wildcard answers in NSEC zones validate [DNS-011] by @rough-ton in #99
  • build(deps): hickory 0.26.4 for its security fixes [DNS-011, NFR-005] by @rough-ton in #106
  • docs: reload in Docker without marking the container as stopped [DOC-006] by @rough-ton in #103
  • feat(i18n): complete the Simplified Chinese pack [API-012] by @snnh in #118

New Contributors

  • @snnh made their first contribution in #118

Full Changelog: v0.8.0...v0.9.0

Don't miss a new telltaledns release

NewReleases is sending notifications on new releases.