FTL's generated dnsmasq.conf has no conf-dir: /etc/dnsmasq.d/ is never read (the 2026-08-24 scratch-name test proved the file was inert; names only resolved from the query cache). The only file-based local-record mechanism is hostsdir=/etc/pihole/hosts. Mount the record file there. Doc: record the pitfall in Pi-hole.md.
43 lines
1.6 KiB
INI
43 lines
1.6 KiB
INI
# Quadlet unit: Pi-hole LAN DNS (rootless, boot-persistent).
|
|
#
|
|
# Install path on dankclaw: ~/.config/containers/systemd/pihole.container
|
|
# Unit name: pihole.service (container name: pihole)
|
|
#
|
|
# The LAN's authoritative DNS for the flat franksdank.cloud / franksdank.casa
|
|
# name scheme. It retired the dnsmasq quadlet (2026-08-24): Pi-hole FTL is a
|
|
# dnsmasq fork, so the addn-hosts record file carries over unchanged and is
|
|
# mounted into /etc/dnsmasq.d/ (the FTL dnsmasq config dir). It serves one A
|
|
# record per Caddy vhost and forwards everything else to the pinned upstream
|
|
# resolvers (DNS1/DNS2 in the env file). The SURFboard G36 router hands this
|
|
# server out to DHCP clients (DNS statically configured -> 192.168.0.143),
|
|
# so no client needs per-device config.
|
|
#
|
|
# Runs on slirp4netns with port 53 (DNS) and 8083 (web UI) published to the
|
|
# LAN (the same pattern as open-webui). Config + state mount from
|
|
# /home/dank/Containers/pihole. The web UI password is WEBPASSWORD in the env
|
|
# file. See docs/Infrastructure/LAN-DNS.md.
|
|
|
|
[Unit]
|
|
Description=Pi-hole LAN DNS container
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Container]
|
|
ContainerName=pihole
|
|
Image=docker.io/pihole/pihole:latest
|
|
Network=slirp4netns
|
|
PublishPort=0.0.0.0:53:53/udp
|
|
PublishPort=0.0.0.0:53:53/tcp
|
|
PublishPort=0.0.0.0:8083:80/tcp
|
|
EnvironmentFile=/home/dank/Containers/pihole/env
|
|
Volume=/home/dank/Containers/pihole/etc-pihole:/etc/pihole
|
|
Volume=/home/dank/Containers/pihole/etc-dockers:/etc/dockers
|
|
Volume=/home/dank/Containers/pihole/addn-hosts:/etc/pihole/hosts/addn-hosts:ro
|
|
|
|
[Service]
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|