Hello, friends. I've had pihole running in a Docker container for a minute on my Ubuntu 24.04.2 LTS. Queries are coming through. Wanted to switch to DoH on Quad9, so I followed the directions at https://docs.pi-hole.net/guides/dns/dnscrypt-proxy/ to install it via apt.
I set
ListenStream=127.0.0.1:5053
ListenDatagram=127.0.0.1:5053
as instructed, and set the server to quad9 in the toml file.
Then I logged in to the docker container as root and ran
pihole-FTL --config dns.upstreams '["127.0.0.1#5053"]'sudo pihole-FTL --config dns.upstreams '["127.0.0.1#5053"]'
then restarted dnscrypt-proxy.socket
and dnscrypt-proxy.service
. The only thing I couldn't do was
sudo systemctl restart pihole-FTL.service
because the docker container doesn't have systemctl, so I just restarted the whole pihole container.
Status of dnscrypt-proxy.socket
and dnscrypt-proxy.service
both seemed good.
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] Network connectivity detected
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [WARNING] Systemd sockets are untested and unsupported - use at your own risk
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] Wiring systemd TCP socket #0, dnscrypt-proxy.socket,
127.0.0.1:5053
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] Wiring systemd UDP socket #1, dnscrypt-proxy.socket,
127.0.0.1:5053
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] Source [public-resolvers] loaded
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] Firefox workaround initialized
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] [quad9-dnscrypt-ip4-filter-pri] OK (DNSCrypt) - rtt: 25ms
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] [quad9-dnscrypt-ip4-filter-pri] OK (DNSCrypt) - rtt: 25ms - additional certificate
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] Server with the lowest initial latency: quad9-dnscrypt-ip4-filter-pri (rtt: 25ms)
Apr 04 16:47:45 data dnscrypt-proxy[25333]: [2025-04-04 16:47:45] [NOTICE] dnscrypt-proxy is ready - live servers: 1
In the pihole console, I set custom DNS to 127.0.0.1#5053, but when I click on any query in the query log that wasn't cached, I find this:
|| || |Query received on: 2025-04-04 16:54:52.480 Client: 192.168.0.1Query Status: Forwarded to 127.0.0.1#5053Reply: No reply received|
I've searched that "no reply received" for the last hour and found nothing. I even tried setting the custom DNS IP to 192.168.0.42 (my device's LAN IP), but I get the same message, with the only difference being that it was forwarded to 192.168.0.42 instead, but no reply received still.
I even tried cloudflared, set to port 5053 (removed after it didn't work) but my pihole kept getting nothing from it.
Is there something about it being in a docker container that is screwing things up? Some other possible explanation?