When I check the following options in the DNS settings, they are set until the docker env restarts. But when the docker machine restarts, these settings are lost.
- Never forward non-FQDNs
- Never forward reverse lookups for private IP ranges
My debug token is https://tricorder.pi-hole.net/8ewu18z6vq
I'm running this with
docker run \
-d \
--rm \
--name pihole \
--network br0 \
--dns 127.0.0.1 \
--dns 1.1.1.1 \
-e TZ='UTC' \
-e WEBPASSWORD='EEK-NotReal' \
-e DNS1='1.1.1.1' \
-e DNS2='1.0.0.1' \
-v /k8s/pihole2/etc:/etc/pihole \
-v /k8s/pihole2/dnsmasq.d:/etc/dnsmasq.d \
-p 192.168.10.8:53:53 \
-p 192.168.10.8:53:53/udp \
-p 192.168.10.8:9080:80 \
-p 192.168.10.8:9443:443 \
--cap-add=NET_ADMIN \
--cap-add=SYS_NICE \
pihole/pihole
On the docker host, /k8s/pihole2 has been chmodded to 777 before starting the container. I can see content created in /k8s/pihole2/etc/pihole
Other settings like disabling a blocking list on a group are persisted across restarts.
Any ideas would be much appreciated!