dpkg -l | grep openresolv
ii openresolv 3.12.0-1 all management framework for resolv.conf
there are 3 entries in resolvconf.conf (uncommented originally):
#dnsmasq_resolv=/var/run/dnsmasq/resolv.conf
pdnsd_conf=/etc/pdnsd.conf
#unbound_conf=/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf
- in order to ensure unbound works for pi-hole users, the unbound line needs to be commented out. Due to the changed path in bullseye, the configuration file now has (an undesired) effect on unbound, in buster, the path was simply wrong, so the file had no effect, however, unbound was restarted (see here).
- dnsmasq stores its configuration files in /etc/dnsmasq.d/, so once again, resolvconf changes a file that has no effect (commented it out to ensure resolvconf doesn't affect dnsmasq in any way)
to ensure raspbian doesn't do unwanted changes to my config, I have added a line to /lib/systemd/system/unbound.service:
ExecStartPre=/etc/unbound/resolvconf.sh
content of that script (partial):
file=/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf
if [ -f ${file} ]; then
echo "WARNING: resolvconf changed unbound config!" | \
socat - UDP4:"${remoteSyslogServer}":"${remoteSyslogServerPort}",connect-timeout=2
{ echo from: root
.....
} | sudo sendmail -d -t pi
fi
which is supposed to warn me if this happens again (does apt-get update resolvconf and change / restore the configuration file - lets hope not....)