Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
- DietPi version:
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=4
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='not applicable'
- Distro version:
bookworm 0
- Kernel version:
Linux DietPi 6.6.28+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux
- Architecture:
arm64
- SBC model:
RPi 5 Model B (aarch64)
- Power supply used:
Raspberry Pi 27W USB-C PSU
- SD card used |
Samsung EVO+ 128 GB MicroSD
Additional Information (if applicable)
- Software title | pi-hole + unbound
- Was the software title installed freshly or
updated/migrated? - Can this issue be replicated on a fresh installation of DietPi? Yes
Steps to reproduce
- Fresh install of DietPi + any updates available on 1st boot on Apr 29.
- Use dietpi-software to install pi-hole and unbound using defaults from the installation
Expected behaviour
- All domains should be resolved/blocked based on pi-hole ad lists
Actual behaviour
- Most domains work fine but starting May 13 one domain, nzb.su, returns SERVFAIL. Also even domains that resolve have the error
communications error to ::1#5335: connection refused
Extra details
dietpi@DietPi:/etc/systemd$ dig @localhost -p 5335 a nzb.su
;; communications error to ::1#5335: connection refused
;; communications error to ::1#5335: connection refused
;; communications error to ::1#5335: connection refused
;; communications error to 127.0.0.1#5335: timed out
; <<>> DiG 9.18.24-1-Debian <<>> @localhost -p 5335 a nzb.su
; (2 servers found)
;; global options: +cmd
;; no servers could be reached
sudo /usr/sbin/unbound -ddd -vvv -c /etc/unbound/unbound.conf
while the above dig command was executed:
dietpi@DietPi:/etc/systemd$ dig @localhost -p 5335 a www.instagram.com
;; communications error to ::1#5335: connection refused
;; communications error to ::1#5335: connection refused
;; communications error to ::1#5335: connection refused
; <<>> DiG 9.18.24-1-Debian <<>> @localhost -p 5335 a www.instagram.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5076
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;www.instagram.com. IN A
;; ANSWER SECTION:
www.instagram.com. 3600 IN CNAME z-p42-instagram.c10r.instagram.com.
z-p42-instagram.c10r.instagram.com. 300 IN A 31.13.65.174
;; Query time: 176 msec
;; SERVER: 127.0.0.1#5335(localhost) (UDP)
;; WHEN: Fri May 31 11:34:08 EDT 2024
;; MSG SIZE rcvd: 97
Output of sudo /usr/sbin/unbound -ddd -vvv -c /etc/unbound/unbound.conf
while the above dig command was executed:
dietpi@DietPi:~$ dig +noall +comments @127.0.0.1 -p 5335 sigfail.verteiltesysteme.net
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 36534
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
dietpi@DietPi:~$ dig +noall +comments +answer @127.0.0.1 -p 5335 sigok.verteiltesysteme.net
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11497
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; ANSWER SECTION:
sigok.verteiltesysteme.net. 1799 IN CNAME sigok.rsa2048-sha256.ippacket.stream.
sigok.rsa2048-sha256.ippacket.stream. 300 IN A 195.201.14.36
dietpi@DietPi:/etc/systemd$ sudo netstat -nltup | grep -E ':53 |unbound|dnsmasq'
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 1590/pihole-FTL
tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 2756/unbound
tcp6 0 0 :::53 :::* LISTEN 1590/pihole-FTL
udp 0 0 127.0.0.1:5335 0.0.0.0:* 2756/unbound
udp 0 0 0.0.0.0:53 0.0.0.0:* 1590/pihole-FTL
udp6 0 0 :::53 :::* 1590/pihole-FTL
Since most domains work as seen with my instagram.com example, I didn’t know about the communications error to ::1#5335: connection refused
error. I noticed it only today when I tried to track down why nzb.su kept failing even though it was green in pi-hole.
I’ve provided all of the information I thought to include after reading many other troubleshooting posts. Any idea what I should try next? In the meantime I’ve turned off the unbound DNS in pi-hole and configured it to use Google. I’d like to go back to unbound if possible.