Repository navigation
Technitium: store settings and zones on the host - #364
Merged
Merged
Conversation
4 tasks done
Mount the data folder at /etc/dns, where Technitium keeps its settings, zones, logs, and statistics. The stack mounted it at /config, which Technitium does not use, so everything was lost when the container was recreated. Add upgrade steps to the README for existing installations.
jackspiering
force-pushed
the
technitium-persist-settings
branch
from
October 8, 2026 15:24
815ec5a to
2cf51a8
Compare
crypt0rr
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Technitium keeps its settings, zones, logs, and statistics in
/etc/dns. The stack mounted the data folder at/config, which Technitium does not use. The host folder stayed empty, and everything was lost when the container was recreated, for example after an image update.compose.yaml: mount./${SERVICE}-data/app/configat/etc/dns.README.md(service): list the data folder, remove the data-loss warning, and add an "Upgrading" section. Existing installations have their settings inside the container, so the section explains how to copy them to the host before the first start of the new version.Related Issues
Verification
Tested in a scratch copy with
technitium/dns-server:latest. A stand-in container replaced Tailscale, because the test only concerns the volume.maindocker compose down, thenup -dUpgrade path from the README, starting on
mainwith a zoneprobe5.exampleand an A recordwww.probe5.example:docker compose stop applicationdocker cp app-technitium:/etc/dns/. ./technitium-data/app/config/docker compose up -dwith the file from this branchResult: the zone is listed, and
nslookup www.probe5.example 127.0.0.1in the stack returns192.0.2.10.A copy from the running container with
docker exec … cpmissed the zone, because Technitium writes zone files with a delay. The README therefore stops the container first.docker compose config --quietinservices/technitium: passed.rumdl check --config .markdownlint.yml services/technitium/README.md: passed.git diff --check: passed.Not tested: access through the Tailnet, which this change does not touch.
Checklist
Additional Context
sudo, so step 2 ran after achownof the host folder. The README usessudo docker cp, because Docker creates the folder as userroot.