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!