Hi all.
I'm doing a fresh install of Pi-hole + Unbound on a RPi Zero, following the documentation. Note that I've done this successfully at least 2-3 times in the past, always by following the docs.
Pi-hole gets installed as it should but Unbound shows the following errors.
After installing unbound
:
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2022-03-19 17:39:09 EET; 243ms ago
Docs: man:unbound(8)
Process: 1613 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=0/SUCCESS)
Process: 1616 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=0/SUCCESS)
Process: 1619 ExecStart=/usr/sbin/unbound -d -p $DAEMON_OPTS (code=exited, status=1/FAILURE)
Process: 1620 ExecStopPost=/usr/lib/unbound/package-helper chroot_teardown (code=exited, status=0/SUCCESS)
Main PID: 1619 (code=exited, status=1/FAILURE)
CPU: 297ms
Mar 19 17:39:09 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 3.
Note: the above error didn't appear when I tried installing unbound
before Pi-hole, but then I ended up having the same problem (a servfail where I should have a noerror).
Also, here's the output of unbound -d -v
:
[1647705854] unbound[1054:0] notice: Start of unbound 1.13.1.
[1647705854] unbound[1054:0] error: can't bind socket: Address already in use for 127.0.0.1 port 8953
[1647705854] unbound[1054:0] error: cannot open control interface 127.0.0.1 8953
[1647705854] unbound[1054:0] fatal error: could not open ports
This doesn't look good, but I haven't found a way to troubleshoot it.
I've searched the forum and the internet and found many people having a similar issue, but none of the recommendations on those threads helped me (most of them were on this forum).
Among the things I've tried were making sure the Pi is on the correct timezone; I also tried manually installing the root.hints
file per the docs, and made sure to uncomment the appropriate line in pi-hole.conf
. It didn't make any difference, although I suppose it shouldn't have since I'm installing unbound
through apt
and this step was optional. unbound-checkconf
says there are no erros in the configuration.
I'm at my wit's end. Thanks in advance for any help.
Expected Behaviour:
Hardware: Raspberry Pi Zero W v 1.1
OS: Raspbian (latest)
Unbound should be working upon installation.
Actual Behaviour:
Unbound doesn't seem to be working judging from the outputs of the following 2 commands (both return a SERVFAIL):
dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335
dig sigok.verteiltesysteme.net @127.0.0.1 -p 5335