rm -rf the real /etc/dns dir before symlinking so it replaces rather than nests. Technitium now writes directly to the persistent addon_config mount — no entrypoint shim needed.
9 lines
397 B
Docker
9 lines
397 B
Docker
FROM technitium/dns-server:latest
|
|
|
|
ENV DNS_SERVER_WEB_SERVICE_HTTPS_PORT=53443 \
|
|
DNS_SERVER_WEB_SERVICE_ENABLE_HTTPS=false
|
|
|
|
# Technitium hardcodes /etc/dns as its config dir. HA's addon_config mounts
|
|
# at /config (persistent). Replace the real dir with a symlink so Technitium
|
|
# writes through to the persistent volume.
|
|
RUN rm -rf /etc/dns && mkdir -p /config/dns && ln -s /config/dns /etc/dns |