Expected Behaviour:
I set up a PiZero2 with PiHole and Unbound as per Craft Computing's YouTube video "You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!"
The router I'm using it on is a Netgear Nighthawk M1 (aka MR1100 in some regions) mobile hotspot.
After some initial confusing behaviour which turned out to be due to me having put Google's DNS on my client machine (therefore bypassing the PiHole) I had it all working perfectly and tested on multiple devices.
Life was good.
Actual Behaviour:
Today I had need of the mobile hotspot so I powered it up, connected to it and couldn't get an internet connection.
I have made no changes to either the Netgear or the Pi configs. I literally turned it off and then a few days later back on again (and we all know that's supposed to fix things, not break them!)
I was able to log in to the PiHole interface on the LAN and to the Router's interface - but couldn't get out on the WAN.
The Netgear M1 interface is very limited and it forces you to have two DNS servers listed. I had set the first one to the Pi's IP address and the second one to 127.0.0.1 (I also tried it with 0.0.0.0)
With neither option working, I turned the DNS to 'auto' from the manual setting it had been on just to make sure that it wasn't an issue with the cellular data or coverage. On 'auto' DNS I was able to get connectivity (although obviously bypassing the PiHole)
The Tail pihole.log is showing me:
Feb 5 14:28:38 dnsmasq[611]: query[A] router3.teamviewer.com from 192.168.1.1
Feb 5 14:28:38 dnsmasq[611]: forwarded router3.teamviewer.com to 127.0.0.1
Feb 5 14:28:38 dnsmasq[611]: forwarded router3.teamviewer.com to 127.0.0.1
Feb 5 14:28:38 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:38 dnsmasq[611]: query[AAAA] router3.teamviewer.com from 192.168.1.1
Feb 5 14:28:38 dnsmasq[611]: forwarded router3.teamviewer.com to 127.0.0.1
Feb 5 14:28:38 dnsmasq[611]: forwarded router3.teamviewer.com to 127.0.0.1
Feb 5 14:28:38 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:40 dnsmasq[611]: query[AAAA] router5.teamviewer.com from 192.168.1.1
Feb 5 14:28:40 dnsmasq[611]: forwarded router5.teamviewer.com to 127.0.0.1
Feb 5 14:28:40 dnsmasq[611]: forwarded router5.teamviewer.com to 127.0.0.1
Feb 5 14:28:40 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:40 dnsmasq[611]: query[A] router5.teamviewer.com from 192.168.1.1
Feb 5 14:28:40 dnsmasq[611]: forwarded router5.teamviewer.com to 127.0.0.1
Feb 5 14:28:40 dnsmasq[611]: forwarded router5.teamviewer.com to 127.0.0.1
Feb 5 14:28:40 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:44 dnsmasq[611]: query[AAAA] init-p01st.push.apple.com from 192.168.1.1
Feb 5 14:28:44 dnsmasq[611]: forwarded init-p01st.push.apple.com to 127.0.0.1
Feb 5 14:28:44 dnsmasq[611]: query[A] init-p01st.push.apple.com from 192.168.1.1
Feb 5 14:28:44 dnsmasq[611]: forwarded init-p01st.push.apple.com to 127.0.0.1
Feb 5 14:28:44 dnsmasq[611]: forwarded init-p01st.push.apple.com to 127.0.0.1
Feb 5 14:28:44 dnsmasq[611]: forwarded init-p01st.push.apple.com to 127.0.0.1
Feb 5 14:28:44 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:44 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: query[A] 0.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: query[A] 0.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: forwarded 0.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: query[A] 1.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: query[AAAA] 1.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
Feb 5 14:28:47 dnsmasq[611]: query[A] 1.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: query[AAAA] 1.debian.pool.ntp.org from 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: forwarded 1.debian.pool.ntp.org to 127.0.0.1
Feb 5 14:28:47 dnsmasq[611]: reply error is SERVFAIL
It goes on - but always with the SERVFAIL message and it doesn't seem to capture any requests coming in from client browsers.
I should add that I'm completely new to this. I set up another PiHole for my home network but I've never had to troubleshoot it because it's just worked. That's about my sum total knowledge of Pi and PiHole to date.
I'd be very grateful for any pointers you might have - or you might even know why it's a ridiculous idea to set up a MiFi hotspot with a PiHole (I don't, but then I don't know very much!)
It seemed to make a lot of sense to me to be blocking queries on something which uses a cellular plan. I might be deluded in my notion that it somehow reduces the amount of data usage by a significant amount but it's all part of experimenting and learning.
Anyway, I'm stuck and have tried everything I could think of so am hoping for some pointers