Ich hätte noch eine frage laut der Unbound Anleitung sollte bei Bullsey automatisch in der /etc/resolv.conf die 127.0.0.1 ohne 5335 erstellt werden das ist auch so richtig.
wen man nun diese Anleitung folgt wird sie ja gelöscht / deaktiviert.
Disable resolvconf.conf entry for unbound (Required for Debian Bullseye+ releases)¶
Debian Bullseye+ releases auto-install a package called openresolv with a certain configuration that will cause unexpected behaviour for pihole and unbound. The effect is that the unbound-resolvconf.service instructs resolvconf to write unbound's own DNS service at nameserver 127.0.0.1 , but without the 5335 port, into the file /etc/resolv.conf. That /etc/resolv.conf file is used by local services/processes to determine DNS servers configured. You need to edit the configuration file and disable the service to work-around the misconfiguration.
Step 1 - Disable the Service¶
To check if this service is enabled for your distribution, run below one. It will show either active or inactive or it might not even be installed resulting in a could not be found message:
systemctl is-active unbound-resolvconf.service
To disable the service, run the statement below:
sudo systemctl disable --now unbound-resolvconf.service
Step 2 - Disable the file resolvconf_resolvers.conf¶
Disable the file resolvconf_resolvers.conf from being generated when resolvconf is invoked elsewhere.
sudo sed -Ei 's/^unbound_conf=/#unbound_conf=/' /etc/resolvconf.conf
sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf
Restart unbound.
sudo service unbound restart
öffne ich nun aber im Anschluss diese Datei steht da folgendes drin.
ist das so richtig ?
nein es zeigt die Datei die hier beschrieben wird an.
( etc/resolv.conf` )
Blockzitat
Disable resolvconf.conf entry for unbound (Required for Debian Bullseye+ releases)¶
Debian Bullseye+ releases auto-install a package called openresolv with a certain configuration that will cause unexpected behaviour for pihole and unbound. The effect is that the unbound-resolvconf.service instructs resolvconf to write unbound's own DNS service at nameserver 127.0.0.1 , but without the 5335 port, into the file /etc/resolv.conf. That /etc/resolv.conffile is used by local services/processes to determine DNS servers configured. You need to edit the configuration file and disable the service to work-around the misconfiguration.