r/pihole • u/[deleted] • Jan 25 '20
How do I verify if Unbound is working?
I have been using Cloudflare DOH on my pihole for a while, but decided to try Unbound today. While on Cloudflare, I visit one of these sites:
- ipleak.net
- dnsleaktest.com
- 1.1.1.1/help
These will show that I am using Cloudflare DOH.
However, I am unsure how to verify Unbound. When I visit these sites, they show my ISP's IP address as DNS resolver. Is that expected?
I also tried the Unbound DNSSEC test validation mentioned here and these tests pass:
``` root@raspberrypi:/home/pi# dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5353
; <<>> DiG 9.11.5-P4-5.1-Raspbian <<>> sigfail.verteiltesysteme.net @127.0.0.1 -p 5353 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 20657 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1472 ;; QUESTION SECTION: ;sigfail.verteiltesysteme.net. IN A
;; Query time: 1039 msec ;; SERVER: 127.0.0.1#5353(127.0.0.1) ;; WHEN: Sat Jan 25 10:29:11 GMT 2020 ;; MSG SIZE rcvd: 57
root@raspberrypi:/home/pi# dig sigok.verteiltesysteme.net @127.0.0.1 -p 5353
; <<>> DiG 9.11.5-P4-5.1-Raspbian <<>> sigok.verteiltesysteme.net @127.0.0.1 -p 5353 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46527 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1472 ;; QUESTION SECTION: ;sigok.verteiltesysteme.net. IN A
;; ANSWER SECTION: sigok.verteiltesysteme.net. 7 IN A 134.91.78.139
;; Query time: 0 msec ;; SERVER: 127.0.0.1#5353(127.0.0.1) ;; WHEN: Sat Jan 25 10:29:21 GMT 2020 ;; MSG SIZE rcvd: 71 ```
I am primarily trying to understand if I should be seeing ISP's IP as DNS resolvers.
2
1
Details
u/lockh33d Apr 13 '23
I have an exact same question, except my result is slightly different. I have PiHole with Unbound setup, but when I go to https://www.dnsleaktest.com the result shows me two DNS servers:
- IP of my ISP's DNS server (which I did not define anywhere in PiHole or Unbound, but is probably sent to my router when it gets its public IP through DHCP)
- my public IP
Does that mean Unbound is working, or is still my ISP's DNS server being used?
1
Details
u/jfb-pihole Team Apr 13 '23
Does that mean Unbound is working
Yes. Unbound is running at your public IP address when checked by this tool.
1
Details
u/lockh33d Apr 13 '23
But if it is set as my sole DNS, then my my ISP's DNS IP shows up?
1
Details
u/jfb-pihole Team Apr 13 '23
The test site may also associate your public IP with the ISP DNS address.
Do you have IPv6 enabled on your router? This can provide a bypass path around Pi-hole.
1
Details
u/lockh33d Apr 13 '23
As far as I can tell, it doesn't. It is running OpenWRT v22.
WAN interface is getting IP by DHCP, and that likely includes DNS address, but the LAN interface has DNS set up to PiHole and nothing else.1
Details
u/jfb-pihole Team Apr 13 '23
I don't believe it is unusual for your ISPs IP to show up when you run unbound on a device at your IP.
2
Details
u/lockh33d Apr 28 '23
It is unusual. It is called DNS leak and I fixed it by forcing DNSmasq to use only my PiHole as DNS. Testing now shows only my IP as the DNS.
1
Details
u/SonThanh2005 Sep 16 '23
i have seen everyone said that when visit these sites it will show Public IP as DNS resolver
but these sites still tell me that im using Cloudflare DNS
is it normal ?
6
Details
u/jfb-pihole Team Jan 25 '20
They should show your public IP, because that's where the resolver is running.
Those tests both passed. Unbound is working.