Expected Behaviour:
Queries forwarded to upstream DNS from localhost should resolve and return to client
Actual Behaviour:
When Pihole's upstream DNS is pointed to a port on local host, for instance unbound
or cloudflared
, queries will not be returned to the client.
Debug Token:
1f8ucvtdy4
Comments:
I'm fairly new to Pihole so I'm unsure if this is a particular issue with my unbound/cloudflared configuration, but anytime I change the upstream DNS from i.e., 1.1.1.1 to a local program (currently trying to get unbound to work) then I get no response.
I think it's probably a Pihole configuration issue, because if I use dig
or nslookup
on the specific port that unbound/cloudflared are running from then I get a response
Querying Pihole directly, currently using 1.1.1.1 as upstream DNS
; <<>> DiG 9.10.6 <<>> pi-hole.net @192.168.50.114 -p 53
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34075
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;pi-hole.net. IN A
;; ANSWER SECTION:
pi-hole.net. 1784 IN A 192.124.249.118
;; Query time: 32 msec
;; SERVER: 192.168.50.114#53(192.168.50.114)
;; WHEN: Wed Jan 20 12:18:08 CST 2021
;; MSG SIZE rcvd: 56
Querying unbound directly
; <<>> DiG 9.10.6 <<>> pi-hole.net @192.168.50.114 -p 5335
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53744
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;pi-hole.net. IN A
;; ANSWER SECTION:
pi-hole.net. 2758 IN A 192.124.249.118
;; Query time: 19 msec
;; SERVER: 192.168.50.114#5335(192.168.50.114)
;; WHEN: Wed Jan 20 12:18:59 CST 2021
;; MSG SIZE rcvd: 56
Querying Pihole directly, using 127.0.0.1#5335 as upstream DNS
; <<>> DiG 9.10.6 <<>> pi-hole.net @192.168.50.114 -p 53
;; global options: +cmd
;; connection timed out; no servers could be reached
Looking at the logs in Pihole I can see that its forwarding my request
Jan 20 12:24:17 dnsmasq[6137]: query[A] pi-hole.net from 192.168.50.205
Jan 20 12:24:17 dnsmasq[6137]: forwarded pi-hole.net to 127.0.0.1
But I never seem to get a response