I guess you set local DNS on the DietPi device to Pihole? Something you should not do. I recommend using a STATIC ip address and a global public DNS provider. Maybe thats one of the issues?
And what does the bridge router uses as upstream DNS? I guess the main router? Which points you back to PiHole? You see the loop? Again I highly recommend using a public DNS inside DietPi own network configuration. This has no impact on PiHole or any AdBlock blocking inside your network.
hmm something strange happen on your system. Actually I don’t know why Unbound is not able to update the file
For me this is working without issue
root@DietPiProd:~# mv /var/lib/unbound/root.key /var/lib/unbound/root.key.old
root@DietPiProd:~# sudo -u unbound unbound-anchor -va /var/lib/unbound/root.key
/var/lib/unbound/root.key does not exist
success: the anchor is ok
root@DietPiProd:~#
For testing, can you move the RPi device directly behind the ISP router? Just to exclude more components. And do you use any specific firewall that could block some sort of requests?
still, the same, i’ve also tried a fresh new dietpi install on a new usb stick.
No firewall at all.
I’ve found some threads on reddit, maybe is my ISP (Vodafone, main router) intercepting DNS queries?
My ISP (Vodafone) is the culprit - to be more specific: their router! (EasyBox 804)
Another thread lead me to this conclusion: Is my router intercepting DNS queries?
After reading that, I checked Unbound with another router (unbranded) and there it just works as it should! Problem is sadly, that I can’t use this other router as it is really old and can only get 50% of my normal internet-speed >_<°
I called Vodafone and they can/will not say anything concrete about the issue at hand and only said that I should ask online again and that maybe I need to open some special ports for it to work, but that’s just their ‘guess’/official statement. Could there be some special ports that Unbound needs to work? I tried to find any but nothing special came up - furthermore on the old router it just works without any open (special) ports… TL;DR: Seems like Vodafone is intercepting my DNS queries and therefore Unbound can not open a secure connection and always fails with SERVFAIL .
If you feel like it, you could test this further and run your RPi4 via a WLAN hotspot on your cell phone, for example. (Cell phone not connected to home WLAN )
As an alternative you can switch off DNSSEC in Unbound. This would then bypass the problem.