Unbound: Richtiger Inhalt von resolv.conf?

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 ?

Betrifft das noch die Fragestellung zu Port 8953, oder ist das ein neues Problem?

Unabhängig davon: Dein Bildschirmfoto zeigt nicht den Inhalt von /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf.

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.

ja weil nach dem neu aufsetzen habe ich das Gefühl das einiges am pi vorbeigeht sehe oben mein pihole bild.

Laut Deinem Screenshot sehen wir weder resolvconf_resolvers.conf noch resolv.conf, sondern den Inhalt von /var/tmp/resolvXXsTpRKc.conf.

unbound's port 8953 hat absolut nichts damit zu tun, wohin Deine Clients ihre DNS-Anfragen senden.

Ich würde empfehlen, für dieses Fehlerverhalten ein neues Topic aufzumachen.

Es tut mir leid aber es ist die besagte Datei.
ich habe nun ein video gemacht.

ich habe nichts anderes gemacht ausser die Abläufe erledigt die in der Anleitung Stehen wen man Bullsey OS installiert.

Screen Video beim öffnen der Datei.

Nein, die Anleitung erläutert vielmehr die Schritte, die zur Vermeidung dieser fehlerhaften Änderungen von /etc/resolv.conf erforderlich sind.

Sofern also etwas anderes als 127.0.0.1 in /etc/resolv.conf auftaucht, waren die Schritte definitiv erfolgreich.

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