I had working setup of pi-hole. But for some reasson dns blocking stopped working.
My pi is at 192.168.188.63 and gateway is a Fritzbox on 192.168.188.1. If I set both dns on the Fritz to the pi then addresses are not resolved by the pi. See debug log.
Expected Behaviour:
Normally every dns lookup from my network would go to the pi.
I do not use Lighttpd but apache2, this was not a problem earlier.
I did have ufw installed, but disabled it for testing.
On this pi I run apache, domoticz and wireguard.
Please advise how to solve this.
Thank you yubiuser, for taking time for this.
I've set up the FritzBox via:
Internet -Account Information - DNS-server: Use other DNSv4 servers: 192.168.188.63 and the dns of my provider. If I change the second one to the pi too, I will loose my internet at the moment. I tried and got a lot of screaming from around the house.
Earlier, this setup was working well. I did not change that.
Try to distribute Pi-hole as DNS server via DHCP. You need to reconnect the devices to the network once you changed the settings to pickup the changes.
Then the Fritz!Box (and at the moment all you clients) will bypass Pi-hole at some point.
Okay,
I've set:
Internet -Account Information - DNS-server, to: "Use DNSv4 servers assigned by the internet service provider (recommended)"
Is that okay then?
And:
Home Network - Network - Network settings - IPv4 Configuration - Local DNS server: 192.168.188.63.
I looks like it is working again.
The advantage is that I do see my clients in Pi-Hole, But I do not have a fall back dns server when the rpi4/pihole is offline.