Hello!
It's my first time posting here and I've looked for a solution to my "specific" problem for a few weeks already (here and elsewhere) and I never found it. I bought a Raspberry Pi 5 a few weeks back when I learned about making my own DNS.
Following the guides from docs.pi-hole.net, I configured all services. I've setup Pi-Hole, WireGuard and unbound. Everything works, BUT for a single "problem". I'm well versed in computers, but I lack knowledge in Linux.
That single problem is when I run dig fail01.dnssec.works @127.0.0.1 -p 5335
, I receive a "communications error". The thing is, it's not happening every time. It's only happening sometimes...
As you can see below, I ran the command back to back and it failed first and then it was successful.
user@raspberry:~ $ dig fail01.dnssec.works @127.0.0.1 -p 5335
;; communications error to 127.0.0.1#5335: timed out
;; communications error to 127.0.0.1#5335: timed out
;; communications error to 127.0.0.1#5335: timed out
; <<>> DiG 9.18.24-1-Debian <<>> fail01.dnssec.works @127.0.0.1 -p 5335
;; global options: +cmd
;; no servers could be reached
user@raspberry:~ $ dig fail01.dnssec.works @127.0.0.1 -p 5335
; <<>> DiG 9.18.24-1-Debian <<>> fail01.dnssec.works @127.0.0.1 -p 5335
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46764
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;fail01.dnssec.works. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.1#5335(127.0.0.1) (UDP)
;; WHEN: Mon Jun 24 18:24:53 EDT 2024
;; MSG SIZE rcvd: 48
Here's a few things I think could help.
unbound config
unbound-checkconf
unbound-checkconf: no errors in /etc/unbound/unbound.conf
hosts content
cat /etc/hosts
127.0.0.1 localhost
#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters127.0.1.1 raspberry
Here's my debug token: https://tricorder.pi-hole.net/d15BB0BG/
Don't hesitate to ask me run a few commands to help you.
Thank you very much for your help!