Guide

Upgrades, backups, and moving in

Keep TelltaleDNS current, keep a copy of everything you set up, move it to a new machine, and bring your settings over from Pi-hole or Technitium.

Read the release notes first. Releases before 1.0 can still change configuration keys and APIs, and each release's notes call out every such change. They're on the releases page.

Your version and channel

Every build says exactly what it is, the same way on every architecture:

$ telltale --version
telltale 0.1.0-edge.64 (commit 3f46fd4, built 2026-10-05T12:00:00Z, channel edge, aarch64-unknown-linux-musl)
  • Releases are 0.1.0. Builds of main (the edge channel) are 0.1.0-edge.<run>. A local build is dev with its commit.
  • Where else it shows: the web UI's sidebar, Settings → System → Version and updates (with how the node was installed: native, container, or helm), GET /api/v1/system/info (build and update), the metric telltale_build_info{version,commit,channel,target}, and the Cluster page for every node.

Each install type picks its channel its own way:

InstallReleasesEdge (builds of main)
Native (install.sh)sudo sh install.sh (the latest release)sudo sh install.sh --edge, or self-update --channel edge
Container image:latest (the newest stable release), or :X.Y.Z, :X.Y, :X:edge, built from every commit on main
Helm charta release version0.1.0-edge.<n> chart versions, which follow main

The edge channel publishes several builds a day.

Update checks

Each node checks for a newer build of its channel by itself. Nothing is installed: TelltaleDNS never updates itself from the UI.

  • When: a minute after the node starts, then every 24 hours (an hour after a failed check).
  • How: the node reads its channel's releases.json, which is published with every release and signed with the release key. An index whose signature doesn't verify is ignored.
  • The result is up_to_date, available, newer (a dev build), or unknown (not checked yet, or failing).
  • Where it shows: an update pill next to the version in the sidebar, the Version and updates panel (with the step for your install), each node's version on the Cluster page, and telltale_update_available (1 when an update exists).

To look now, an admin clicks Check now under Settings → System → Version and updates (or POST /api/v1/system/update-check). Clicks less than a minute apart show the last result without fetching again.

Air-gapped? [updates] check = false means nothing leaves the node. [updates] index_url points at a mirror, which is still verified with the built-in key. See the configuration reference.

Upgrade

The Version and updates panel shows the step for your install. Here are all three.

Raspberry Pi / Linux (native)

For an install made with install.sh:

sudo telltale self-update --check                 # only look
sudo telltale self-update --restart               # upgrade and restart
sudo telltale self-update --channel edge --restart  # builds from main
sudo telltale self-update --to 0.8.0 --restart    # one version (older ones too)
  • It verifies the signature with the release key built into the binary and checks the binary's SHA-256, test-runs the download, swaps it in atomically, and keeps the previous binary as telltale.old.
  • Or re-run the installer: sudo sh install.sh upgrades the binary in place. When /etc/telltale/telltale.toml already exists it asks no guided questions and upgrades; your config is kept. One question can still come, in a terminal: if systemd-resolved is running with its stub listener on, it asks whether to turn the stub off (--disable-resolved-stub answers it in advance; without a terminal systemd-resolved is left as it is).
  • OpenWrt (manual binary install): avoid telltale self-update—it assumes systemd for --restart and keeps a second copy of the binary on flash. Verify the new binary on a workstation, copy it over, and restart the procd service (OpenWrt upgrade steps).

Docker

With the Docker Compose bundle, in the folder with compose.yaml:

docker compose pull && docker compose up -d

telltale self-update refuses to run in a container: pull a new image instead. Your data lives in the /var/lib/telltale volume, the only path the container writes to.

Kubernetes

Run helm upgrade with the new chart version and the same values file you installed with, or bump the chart version in your GitOps values (Argo CD, Flux):

helm upgrade telltale oci://ghcr.io/paimonsoror/charts/telltale --version <version> \
  -n telltale -f my-values.yaml

The chart is published with every release, plus 0.1.0-edge.<n> builds that follow main. The chart's join secret for resolver pods is kept across upgrades. Every value is on Helm values; the rest of the chart is in Run on Kubernetes.

Upgrade a cluster

  1. Upgrade one node at a time, the replicas first. DNS keeps answering throughout if your clients have two DNS servers (each node is one).
  2. Upgrade the primary last.
  3. Check the Cluster page. Its versions check lists the mix of versions until the last node is upgraded.
  • A half-upgraded cluster is fine. Versions one cluster protocol apart work together (N and N−1, either way round).
  • A replica older than its primary keeps working, unless the primary starts using settings the older version doesn't know. Then the replica keeps serving its last version, and its sync status says to upgrade it.

Let the cluster do it

Native nodes (installed with install.sh) can be upgraded by the cluster, in that order, one at a time. It is off by default: treat it as experimental until you have watched it upgrade a node of yours. Turn on each node's update service once, on its own channel:

sudo sh install.sh --cluster-updates           # a node on releases
sudo sh install.sh --edge --cluster-updates    # a node on edge builds (or --stable to move it to releases)

Then, with an admin's token:

telltale ctl --url https://dns.example.com upgrade --to 0.8.0 --dry-run   # the order
telltale ctl --url https://dns.example.com upgrade --to 0.8.0
  • Every node is checked first (update service on, nothing already running, on a channel that takes the version); then replicas first, the primary last, each done once its update service says it installed the version and passed its health check, and it is back, ready, and in sync. The first failure stops it, and the error is the node's own. Witnesses and containers are left to you, pods to the chart.
  • The node's service never gets root. It writes a request; a root update service checks it, installs only a newer build of the node's channel carrying the release signature, restarts the node, and puts the previous binary back if the new one doesn't answer ready within two minutes at the node's API address (install.sh writes it into the service; with the API off the feature isn't available). It never downgrades, and never moves a node to edge builds; an edge node that takes a release stays on edge.
  • A rollback is an incident: look at the node before asking again. It refuses that version for 24 hours from that run (and says until when); sudo telltale self-update --to <version> --restart by hand still works. A failure in the downloads (an outage) holds nothing back.
  • No maintenance window: the node just restarts, so a node-down alert can fire for a moment.
  • With the Helm chart, set upgradeHook.enabled, pin image.tag to a build, and name a token Secret (an agent token with analytics:read and cluster:upgrade): a bump of the chart (or a merged Renovate pull request) upgrades the native nodes first, then the pods. The hook runs on every sync, so a token that expires or is revoked blocks every sync: make it without an expiry, or rotate it in time. Run helm upgrade --timeout 45m.
  • The hook's pod is never an endpoint of a Service: its app.kubernetes.io/name is <name>-upgrade-hook, not the chart's own name. Charts 0.8.0 to 0.9.0, and edge charts built before this fix, made it one of the DNS Service in mode: scaled, so a load balancer could announce the DNS address from its node while it ran, without DNS or the cluster port there. With one of those, running telltale ctl upgrade --to <version> before the sync only shortens that window (the hook then finds nothing to do and ends in seconds); to avoid it, keep the hook on the controller's node with a nodeSelector that matches that one node (for example kubernetes.io/hostname), which pins the controller to that node too.
  • Edge builds can be installed this way only while they are the newest on the edge channel. Under Argo CD, a pin that main has passed blocks the sync while a native node is behind it (upgradeHook.whenUnavailable: fail, the default), or leaves that node on its version (skip). Pin a release to avoid both.

More in Build a cluster and the running guide.

Back up

A backup is one file. Make one before a big change, and whenever you'd hate to set things up again.

  • In the web UI: an admin clicks Settings → System → Download a backup.
  • Through the API: GET /api/v1/backup.
  • On the server, safe while TelltaleDNS runs:
telltale backup create -o pi.ttbk                 # settings, users, history
telltale backup create --include-qlog -o pi.ttbk  # also the query log (can be large)
telltale backup show pi.ttbk                      # check it and list what's in it

Downloads from the UI and API leave out the query log; use the command for that. Each download is recorded in the audit log as backup.create.

In a backup

The config files the node was started with; users (password hashes, two-factor secrets) and API tokens; devices, names, and forwarded domains made in the UI; the audit log, statistics history, and anomaly baselines; and the query log, with --include-qlog.

Left out

Sign-in sessions (everyone signs in again); downloaded lists, compiled snapshots, and the cache, which are rebuilt; the cluster identity and its CA key; and router keys pasted in the UI: after a restore each such router says key missing: enter it again. A copy of the whole data folder or a volume snapshot does hold those keys, so keep it private and encrypt the volume.

Keep it private. It holds password hashes and API tokens. The file is zstd-compressed tar with a manifest of BLAKE3 checksums, written owner-only (0600).

Restore on a new machine

  1. Install TelltaleDNS on the new machine (see Get started), and copy the backup file to it.
  2. Stop TelltaleDNS there. Restore refuses while TelltaleDNS runs on that data directory, because it can't take the directory's lock.
  3. Restore:
    telltale backup restore pi.ttbk
    Every file is checked before anything is written, so a damaged or truncated backup changes nothing. Existing files are only replaced with --force (the installer writes a starter config, so a fresh install already has one).
  4. Start TelltaleDNS and sign in again. Lists are downloaded and compiled again.
  5. Point your router's DHCP DNS setting at the new machine.
  • Where files go: data goes back to the directory it came from, or --data-dir; config files go back where they were, or --config-dir.
  • A different data directory? The restored config still names the old one. Restore says so; set data_dir (or add a small file that does).
  • Running it as root is fine: files are given the data directory's owner, so the telltale service user can read them.
  • A cluster member starts on its own after a restore: run telltale cluster init, or join it again (Build a cluster).

Details: Backups and moving to a new machine.

Move in from Pi-hole or Technitium

Pi-hole and Technitium DNS Server are the projects that inspired TelltaleDNS, and the importers bring the setup you built there along with you. Each one writes a TelltaleDNS config file and checks that it loads before writing it. The short version is on Get started.

From Pi-hole

telltale import pihole PATH -o pihole.toml

PATH is a Teleporter export (Settings → Teleporter → Export: a .zip from Pi-hole v6, a .tar.gz from v5), a gravity.db, or a copy of /etc/pihole.

What comes over: upstream DNS servers, conditional forwarding, local DNS and CNAME records, adlists (switched-off ones stay with enabled = false), allowed and denied domains (exact and regex), groups, clients (IP, CIDR, MAC), DHCP reservations as named devices, and the DNSSEC, rate-limit, and blocking-mode settings.

What doesn't: query history, the admin password, and API tokens. The header of pihole.toml lists, by setting name, everything else with no equivalent, such as clients matched by host name or network interface (add their IP or MAC instead), the DHCP server, and Pi-hole-only settings.

  1. On a fresh install, use the file as is next to your node settings: telltale run -c telltale.toml -c pihole.toml.
  2. Into an existing setup, merge it by hand: both files define the default upstream group and group.
  3. An upstream on the Pi-hole machine itself (127.0.0.1#5335, usually unbound) is flagged: keep that resolver running next to TelltaleDNS.

Every row of the mapping: Moving from Pi-hole.

From Technitium

The importer reads a running Technitium DNS Server through its API. First create an API token in Technitium (Administration → Sessions → Create Token).

TECHNITIUM_TOKEN=… telltale import technitium http://192.168.1.2:5380 -o technitium.toml

Pass the token in TECHNITIUM_TOKEN or in a file with --token-file. It's never a command-line argument, so it doesn't show up in ps, and it never appears in the output.

What comes over: forwarders, primary zones as local records, forwarder zones (conditional forwarding), block list URLs and blocked and allowed zones, the blocking type, Advanced Blocking app groups, the blocking bypass list, DHCP reservations as named devices, and the DNSSEC, rate-limit, and cache-saving settings.

What doesn't: the header lists it, including secondary and stub zones, forwarders given only by name, the DHCP server, and encrypted listeners (set those up in Encrypted DNS).

Technitium's backup files use a private binary format, so the importer reads the documented API instead. Every row of the mapping: Moving from Technitium.

Zone files from any DNS server (Technitium's Zones → Export Zone, BIND, PowerDNS) become [[record]] entries for your config:

telltale import zone exported.zone > records.toml

The header lists anything with no local equivalent; SOA and NS aren't needed. Names under the zone that you don't import still resolve normally, so a split-horizon domain keeps working. Keep your old server running until TelltaleDNS answers the way you expect, then point your router at TelltaleDNS.

Troubleshooting

What you seeWhat to do
The update status is unknownThe node hasn't checked yet, or the check is failing; a failed check is retried after an hour. On a network with no internet access, set [updates] index_url to a mirror, or [updates] check = false.
telltale self-update refuses to runIt doesn't run in containers. Pull a new image instead: docker compose pull && docker compose up -d.
A replica's sync status says to upgrade itThe primary uses settings the replica's version doesn't know. The replica keeps serving its last version; upgrade it.
backup restore refuses to startTelltaleDNS is running on that data directory. Stop the service first.
backup restore won't replace existing filesAdd --force if you mean to overwrite them.
The restored node uses the wrong data directoryYou restored into a different one: set data_dir in the config (or add a small file that does).
A restored cluster member runs on its ownThe cluster identity isn't in a backup. Run telltale cluster init, or join it again.
"Address already in use" on port 53 after moving from Pi-holePi-hole or another resolver on the same machine must be stopped first. See Get started.