Expected Behaviour:
Tried to install pihole with cloudflare but I’ve run into various problems. Pihole by itself I could never get to work (I think my ISP is blocking the port; see previous post here UDP DNS reply: Timeout - no response from upstream DNS server ).
I got DoH through cloudflared working for awhile, then there was a system update that seemed to wreck everything and now it’s not working at all.
- Ubuntu 24.04
- Cloudflared installed using the pihole documentation here: cloudflared (DoH) - Pi-hole documentation
- cloudflared version 2025.9.0 (built 2025-09-18-10:17 UTC)
Actual Behaviour:
Currently, a dig command gets the following:
$ dig @127.0.0.1 -p 5053 google.com
;; communications error to 127.0.0.1#5053: connection refused
;; communications error to 127.0.0.1#5053: connection refused
;; communications error to 127.0.0.1#5053: connection refused
; <<>> DiG 9.18.39-0ubuntu0.24.04.1-Ubuntu <<>> @127.0.0.1 -p 5053 google.com
; (1 server found)
;; global options: +cmd
;; no servers could be reached
My cloudflared status report looks like this:
cloudflared.service - cloudflared DNS over HTTPS proxy
Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-09-21 00:55:05 MST; 15h ago
Main PID: 4700 (cloudflared)
Tasks: 9 (limit: 9259)
Memory: 11.5M (peak: 13.3M)
CPU: 11.672s
CGroup: /system.slice/cloudflared.service
└─4700 /usr/local/bin/cloudflared proxy-dns --port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query --address 192.168.1.85
Sep 21 00:55:05 goyo-p-ubuntu systemd[1]: Started cloudflared.service - cloudflared DNS over HTTPS proxy.
Sep 21 00:55:05 goyo-p-ubuntu cloudflared[4700]: 2025-09-21T07:55:05Z INF Adding DNS upstream url=https://1.1.1.1/dns-query
Sep 21 00:55:05 goyo-p-ubuntu cloudflared[4700]: 2025-09-21T07:55:05Z INF Adding DNS upstream url=https://1.0.0.1/dns-query
Sep 21 00:55:05 goyo-p-ubuntu cloudflared[4700]: 2025-09-21T07:55:05Z INF Starting DNS over HTTPS proxy server address=dns://192.168.1.85:5053
Sep 21 00:55:05 goyo-p-ubuntu cloudflared[4700]: 2025-09-21T07:55:05Z INF Starting metrics server on 127.0.0.1:42693/metrics
For awhile the pihole query log was returning nothing but SERVFAIL to everything. Now everything is:
Query received on: 2025-09-21 16:18:44.778
Client: 192.168.1.74
Query Status: Forwarded to 127.0.0.1#5053
Reply: No reply received
Database ID: 23050
Debug Token:
https://tricorder.pi-hole.net/P2dMCTxt/
Thanks in advance for all the help.