Unbound - Pi Hole DNS - ServFail

Expected Behaviour:

Install Unbound on my laptop and followed instructions (unbound - Pi-hole documentation) to set it up.

Pi-Hole DNS is being provided by my router.

dig pi-hole.net AT 127.0.0.1 -p 5335

This should result in a successful response. ie:

; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> pi-hole.net AT127.0.0.1 -p 5335
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64726
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;pi-hole.net. IN A

;; ANSWER SECTION:
pi-hole.net. 300 IN A 3.18.136.52

;; Query time: 1379 msec
;; SERVER: 127.0.0.1#5335(127.0.0.1) (UDP)
;; WHEN: Tue Apr 16 11:49:53 EEST 2024
;; MSG SIZE rcvd: 56

Actual Behaviour:

dig pi-hole.net AT127.0.0.1 -p 5335

This returns

; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> pi-hole.net AT127.0.0.1 -p 5335
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 62578
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;pi-hole.net. IN A

;; Query time: 79 msec
;; SERVER: 127.0.0.1#5335(127.0.0.1) (UDP)
;; WHEN: Tue Apr 16 11:49:32 EEST 2024
;; MSG SIZE rcvd: 40

Debug Token:

https://tricorder.pi-hole.net/ty3aXPN2/

Notes:

As soon as I switch my laptop to a hotspot created from my phone, Unbound successfully resolves the domain

Thank you!

Please check your pihole system time first.

Thx for the reply :slight_smile:

Unbound (for testing purposes, before moving it to my pi-hole) is running on my local machine.

Local machine date -> Tue Apr 16 14:29:44 EEST 2024

Pi-Hole date -> Tue Apr 16 14:31:16 EEST 2024

Please make sure that the times are synchronized. A deviation of 1,5 sec can create exactly this trouble.

For more support plase submit a debug report (just the URL) for the mods.

Thx for the reply again :slight_smile:
The debug log is on 1st post (https://tricorder.pi-hole.net/ty3aXPN2/)

Dates are in sync. The difference was due to a late login in my Pi-Hole :slight_smile:

So just to sum up my setup:

Pi-Hole is running on an OrangePi. I couldn't get Unbound working in the OrangePi so I moved it to my local machine for easy debugging.

The results are on the 1st post!

Bump! Any help getting unbound to work?

Thank you!