Servus ich freue mich auf eure Hilfe
Das bekomme ich bei der Ausführung von
sudo unbound -v
[1693208571] unbound[3341:0] notice: Start of unbound 1.13.1.
[1693208571] unbound[3341:0] error: can't bind socket: Address already in use for 127.0.0.1 port 8953
[1693208571] unbound[3341:0] error: cannot open control interface 127.0.0.1 8953
[1693208571] unbound[3341:0] fatal error: could not open ports
Ich habe Unbound nach diesen vorgaben installiert.
habe diesen Part in dem Link ausgeführt da bei mir aktive stand.!
( ich denke ich musste nur diese befehle ausführen. richtig oder musste ich Dateien öffnen und bearbeiten ? )
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
sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*
/etc/unbound/unbound.conf:include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:server:
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf: auto-trust-anchor-file: "/var/lib/unbound/root.key"
/etc/unbound/unbound.conf.d/pi-hole.conf:server:
/etc/unbound/unbound.conf.d/pi-hole.conf: verbosity: 0
/etc/unbound/unbound.conf.d/pi-hole.conf: interface: 127.0.0.1
/etc/unbound/unbound.conf.d/pi-hole.conf: port: 5335
/etc/unbound/unbound.conf.d/pi-hole.conf: do-ip4: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: do-udp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: do-tcp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf: prefer-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf: harden-glue: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: harden-dnssec-stripped: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: use-caps-for-id: no
/etc/unbound/unbound.conf.d/pi-hole.conf: edns-buffer-size: 1232
/etc/unbound/unbound.conf.d/pi-hole.conf: prefetch: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: num-threads: 1
/etc/unbound/unbound.conf.d/pi-hole.conf: so-rcvbuf: 1m
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 192.168.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 169.254.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 172.16.0.0/12
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 10.0.0.0/8
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: fd00::/8
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: fe80::/10
pi@raspberrypi:~ $ unbound-checkconf
unbound-checkconf: no errors in /etc/unbound/unbound.conf
pi@raspberrypi:~ $ sudo service unbound status
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-08-28 09:52:40 CEST; 2min 33s ago
Docs: man:unbound(8)
Process: 4258 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=0/SUCCESS)
Process: 4261 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=0/SUCCESS)
Main PID: 4264 (unbound)
Tasks: 1 (limit: 1595)
CPU: 447ms
CGroup: /system.slice/unbound.service
└─4264 /usr/sbin/unbound -d -p
Aug 28 09:52:39 raspberrypi systemd[1]: Starting Unbound DNS server...
Aug 28 09:52:40 raspberrypi unbound[4264]: [4264:0] info: start of serv
infos
sudo pihole -v
Pi-hole version is v5.17.1 (Latest: v5.17.1)
AdminLTE version is v5.20.1 (Latest: v5.20.1)
FTL version is v5.23 (Latest: v5.23)
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"