Pi OS and unbound and resolvconf

I have installed a default Raspberry Pi OS (bullseye, debian 11), latest Pi-hole, and followed the unbound guide to set up my local resolver. So far, so good everything seems to work. DNSSEC validation test works fine.

The thing that makes me scratch my head is that after stopping and disabling unbound-resolvconf.service, my /etc/resolv.conf shows:

nameserver 8.8.8.8

As far as I understand this would be the nameserver the distro's services would be using, right?
Did unbound-resolvconf.service place that there? Has anyone seen the same? Should I manually override the value with localhost#5335.

Or am I supposed to define static domain_name_servers in /etc/dhcpcd.conf? (How? 127.0.0.1#5335 ?)

Thanks in advance, happy to share my debug log.

change it to

/etc/dhcpcd.conf
static domain_name_servers=127.0.0.1

sudo systemctl restart dhcpcd

also a static ip would be a good idea.

S>

Thanks for your reply.

what about the port? I understood the guide in a way that that would be the problem. (The sentence "If you configured /etc/dhcpcd.conf with a static domain_name_servers= " doesn't really apply to me since I didn't set a static IP in that conf file.

I am using a static IP on my pi/ pihole. Actually, I may not need the dhcpcd service at all. Do I?

You probably do need dhcpd as it does more with networking than just hand out ip addresses - you do not need to include the port in the config - just the way I showed works well for me....

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.