Connection timed out; no servers could be reached unbound

from pihole

dig cloudflare.com

; <<>> DiG 9.16.44-Raspbian <<>> cloudflare.com
;; global options: +cmd
;; connection timed out; no servers could be reached
dig google.com

; <<>> DiG 9.16.44-Raspbian <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached

unbound -v
[1718025514] unbound[1343:0] notice: Start of unbound 1.13.1.
[1718025514] unbound[1343:0] error: can't bind socket: Address already in use for 127.0.0.1 port 5335
[1718025514] unbound[1343:0] fatal error: could not open ports

[1718025514] unbound[1343:0] error: can't bind socket: Address already in use for 127.0.0.1 port 5335

Unbound cannot run becuase the socket is being used by a different process. From the pihole you can run sudo lsof -iUDP:5335 to see whats on that port.

1 Like

sudo netstat -tulpen | grep :5335
tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 0 31937 3379/unbound

Your output shows unbound listening on TCP but nothing for UDP. When I run the same command it shows both.

What does systemctl status unbound show?

1 Like

thx for the reply, i went ahead and reinstalled pihole, troubleshooting this took longer than reinstall