The issue I am facing:
I've installed Pi-Hole without GUI, however now I want to use unbound, hence change the upstream server of the Pi-Hole server. I've found articles about changing pihole.conf and dnsmasq.conf, however, after restarting the service (and even the server) I keep getting the originally-configured upstream server as lookup (when using dig)
Details about my system:
Latest pihole + FTL, no web, running Buster @ rpi4b
What I have changed since installing Pi-hole:
Nothing yet, that's the point
This gives...
Apr 7 15:07:57 dnsmasq[2658]: using nameserver 1.1.1.1#53
... which is good, since i used cloudflare as an alternative upstream DNS. So that seems to work.
As a matter of fact, dnsmasq isnt installed on my machine! Sorry bout that!
If I run dig from any of the LAN-machines, I get the pihole's IP as lookup server. If I use dig on the pihole itself, it gives the old (non-cloudflare) upstream dns:
No, you just forgot that your rpi4b isn't using Pi-hole as DNS server. Your device hosting the Pi-hole software is using 80.80.80.80. Configuring an other DNS server than Pi-hole for the Pi-hole device is not a bad idea at all. In case it would send all DNS requests to Pi-hole and there would be a problem with the Pi-hole software you might not be able to reinstall Pi-hole as you would need a working internet connection (and DNS resolution) to do so.
Makes sense! I've changed the nameserver in dhcpd.conf and after restarting the corresponding service, it works like a charm. For anyone wondering (for me it was nice to see) that this doesn't affect LAN-clients. So thanks for the great help!
If you want to use unbound, why are you still providing an alternative upstream DNS resolver? Your upstream DNS traffic can go to either of these resolvers, which essentially defeats the purpose of installing unbound in the first place.
Heya,
You're absolutely right. It was merely a test to see if I was able to change my upstream DNS in the first place. I was feeling a bit unsure about it and turns out: I needed this topic to get some answers I will obviously change it to the unbound entry now.