Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx
instead of lighttpd
, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
When setting the DNS server to 127.0.0.1#5053, I expected the cloudflared service to work as intended.
Actual Behaviour:
When using cloudflared as the DNS service, I could not connect to any external websites. When I tried to run dig @127.0.0.1 -p 5053 google.com
, it returned:
; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> @127.0.0.1 -p 5053 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 27472
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 7abbdbb4ecbc8a6c (echoed)
;; QUESTION SECTION:
;google.com. IN A
;; Query time: 8 msec
;; SERVER: 127.0.0.1#5053(127.0.0.1) (UDP)
;; WHEN: Sat Dec 28 02:06:43 PST 2024
;; MSG SIZE rcvd: 51
So I'm assuming something is wrong with cloudflared, because if I use the default Cloudflare DNS (1.1.1.1
, 1.0.0.1
), it works perfectly fine.