2026-07-06

Enable DNS over TLS on containerized smokeping from Linuxserver.io

So you are running Smokeping in a container provided by Linuxserver.io. And you want its DNS probe to do DNS over TLS.

SOLUTION

Expose a new directory to the Smokeping container and mount it at /root inside the container:

-v /path/to/dir:/root

Inside this directory create a single file named .digrc with +tls as the contents:

echo '+tls' > /path/to/dir/.digrc

From now on, the /usr/bin/dig binary inside the Smokeping container will always implicitly pass the +tls flag every time it runs.

Quadlet file for systemd and podman

[Unit]
Description=smokeping

[Container]
Image=lscr.io/linuxserver/smokeping:latest
ContainerName=smokeping
HostName=%H
Environment=TZ=Etc/UTC
Volume=%h/containers/smokeping/config:/config
Volume=%h/containers/smokeping/data:/data
## My directory of choice for the .digrc file
## is ~/containers/smokeping/roothome
Volume=%h/containers/smokeping/roothome:/root
PublishPort=3380:80/tcp
AddCapability=NET_RAW
AutoUpdate=registry
Pull=newer

[Service]
Restart=always

[Install]
WantedBy=default.target