WARNING: Raspbian October 2021 release bullseye + unbound

Looks good.
One step missing though after below bit:

sudo sed -Ei 's/^unbound_conf=/#unbound_conf=/' /etc/resolvconf.conf
sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf

It will need an unbound restart after to apply ... if the file was present eg:

sudo service unbound restart

Or a one-liner with the rm:

sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf && sudo service unbound restart

This is truly a vital step :sweat_smile:

From Debian Trixie on, probably next Ubuntu release (if it has no own sources or patches for this package), this won't be an issue anymore: Do not handle Unbound/dnsmasq/PowerDNS by default (!3) · Merge requests · Debian / openresolv · GitLab

2 Likes