G1

Attempting to install Pi-Hole with Unbound on Quardra. If you don’t know that means then first go to last paragraph.

Using the guide for a Raspbery Pi:  https://docs.pi-hole.net/guides/dns/unbound/

Config file is the same as in the guide except logging is activated.

Pi-Hole installs and runs - no problems. DNS works fine with the rest of the system.

Unbound installs but every DNS lookup fails when using unbound. 
(I guess that something important for unbound in this armbian OS is different than the Debian GNU/Linux 11 (bullseye) OS on the Ras Pi, where Pi-Hole and unbound work fine for me)
Testing with dig shows server fail.  The unbound log shows “query response was THROWAWAY” on every IP lookup.

One comment I found suggests “it's DNS trust chain” problem… but that does not help ME.

Any suggestions?

Quote:

<Start of dig output from "dig pi-hole.net @127.0.0.1 -p 5335">
root@inovato:~# dig pi-hole.net @127.0.0.1 -p 5335

; <<>> DiG 9.16.37-Debian <<>> pi-hole.net @127.0.0.1 -p 5335

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 1422

;; 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: 172 msec

;; SERVER: 127.0.0.1#5335(127.0.0.1)

;; WHEN: Sat Mar 04 08:
<End of dig output>

 

Quote:

<Start of unbound log from server restart to first dig>

Mar 04 08:24:39 unbound[3720:0] info: server stats for thread 0: 1 queries, 0 answers from cache, 1 recursions, 0 prefetch, 0 rejected b>

Mar 04 08:24:39 unbound[3720:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0

Mar 04 08:24:39 unbound[3720:0] info: mesh has 0 recursion states (0 with reply, 0 detached), 0 waiting replies, 1 recursion replies sen>

Mar 04 08:24:39 unbound[3720:0] info: average recursion processing time 0.129794 sec

Mar 04 08:24:39 unbound[3720:0] info: histogram of recursion processing times

Mar 04 08:24:39 unbound[3720:0] info: [25%]=0 median[50%]=0 [75%]=0

Mar 04 08:24:39 unbound[3720:0] info: lower(secs) upper(secs) recursions

Mar 04 08:24:39 unbound[3720:0] info:    0.065536    0.131072 1

Mar 04 08:24:39 unbound[3742:0] notice: init module 0: subnet

Mar 04 08:24:39 unbound[3742:0] notice: init module 1: validator

Mar 04 08:24:39 unbound[3742:0] notice: init module 2: iterator

Mar 04 08:24:39 unbound[3742:0] info: start of service (unbound 1.13.1).

Mar 04 08:24:39 unbound[3742:0] info: resolving . DNSKEY IN

Mar 04 08:24:39 unbound[3742:0] info: priming . IN NS

Mar 04 08:24:39 unbound[3742:0] info: response for . NS IN

Mar 04 08:24:39 unbound[3742:0] info: reply from <.> 199.7.91.13#53

Mar 04 08:24:39 unbound[3742:0] info: query response was THROWAWAY

Mar 04 08:24:39 unbound[3742:0] info: response for . NS IN

Mar 04 08:24:39 unbound[3742:0] info: reply from <.> 199.7.83.42#53

Mar 04 08:24:39 unbound[3742:0] info: query response was THROWAWAY

<  at this point multiple lines show same as last three lines with differing IP addresses until the end of the log >

 

Googling I found this comment which I suspect is on the right track but I need a lot more help to solve this:

“I think the THROWAWAY response is an indication that the DNS data chain can't be trusted. ... Unbound needs to use root.hints and the root.key to prime it's DNS trust chain while /etc/resolv.conf is set to a 3rd party DNS server like Google. Once the trust chain has been primed you can update /etc/resolv.conf to point to 127.0.0.1 so Unbound can do it's thing as a recursive caching DNSSEC server.

Last paragraph:

Pi-hole is a DNS sinkhole that works as ad blocker by sending domain name lookups to the bitbucket, and at the same time blocking various tracking elements on web pages.  Unbound is a validating, recursive, and caching DNS resolver that in this case works with Pi-hole to insure you can trust the DNS lookup results instead of simply assuming that the DNS service you normally would use (such as the one from your ISP) has the correct data. Pi-Hole, and especially Pi-hole with unbound, provide for increased privacy, faster web surfing, and other benefits. And of course you know what Quadra is.

Robert @ Tech Addressed techaddressed
I'm running pi-hole on two Quadras that sync with each other.  I also have a whole range of tutorials on exactly how to get this all setup.  Linking specifically to my tutorial on Unbound.  If you still need help afterward let me know.

https://www.techaddressed.com/tutorials/pi-hole-recursive-dns-unbound/
Reply 0 0
G1
I'm running pi-hole on two Quadras that sync with each other.  I also have a whole range of tutorials on exactly how to get this all setup.  Linking specifically to my tutorial on Unbound.  If you still need help afterward let me know.

https://www.techaddressed.com/tutorials/pi-hole-recursive-dns-unbound/
Thanks for the reply.. and your tutorials are quite well done.
However I see no changes from the Pi-Hole docs and the guide I followed both for the Rasp Pi (Bullseye) and the Quadra.  Unbound works fine for the former but not the latter.
Still, I started with a virgin Quadra Armbian OS and followed your tutorial .. and still no joy, just SERVFAIL.
 
I still suspect this is a issue with the OS running on the Quadra and that is why I posted here, but this will need to be researched further in the unbound docs and forums when I find the time. 
In case you do know your way around unbound well.. here is the level 3 log output from the starting of unbound, before a single user DNS inquiry...
 
Mar 10 11:59:21 unbound[4813:0] debug: module config: "subnetcache validator iterator"
Mar 10 11:59:21 unbound[4813:0] notice: init module 0: subnet
Mar 10 11:59:21 unbound[4813:0] debug: subnet: option registered (8)
Mar 10 11:59:21 unbound[4813:0] notice: init module 1: validator
Mar 10 11:59:21 unbound[4813:0] notice: init module 2: iterator
Mar 10 11:59:21 unbound[4813:0] debug: target fetch policy for level 0 is 3
Mar 10 11:59:21 unbound[4813:0] debug: target fetch policy for level 1 is 2
Mar 10 11:59:21 unbound[4813:0] debug: target fetch policy for level 2 is 1
Mar 10 11:59:21 unbound[4813:0] debug: target fetch policy for level 3 is 0
Mar 10 11:59:21 unbound[4813:0] debug: target fetch policy for level 4 is 0
Mar 10 11:59:21 unbound[4813:0] debug: cache memory msg=66072 rrset=66072 infra=7808 val=66368 subnet=74504
Mar 10 11:59:21 unbound[4813:0] info: start of service (unbound 1.13.1).
Mar 10 11:59:21 unbound[4813:0] debug: subnet[module 0] operate: extstate:module_state_initial event:module_event_new
Mar 10 11:59:21 unbound[4813:0] info: subnet operate: query . DNSKEY IN
Mar 10 11:59:21 unbound[4813:0] debug: validator[module 1] operate: extstate:module_state_initial event:module_event_pass
Mar 10 11:59:21 unbound[4813:0] info: validator operate: query . DNSKEY IN
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_state_initial event:module_event_pass
Mar 10 11:59:21 unbound[4813:0] info: resolving . DNSKEY IN
Mar 10 11:59:21 unbound[4813:0] info: priming . IN NS
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_state_initial event:module_event_pass
Mar 10 11:59:21 unbound[4813:0] info: iterator operate: query . NS IN
Mar 10 11:59:21 unbound[4813:0] info: processQueryTargets: . NS IN
Mar 10 11:59:21 unbound[4813:0] info: sending query: . NS IN
Mar 10 11:59:21 unbound[4813:0] debug: sending to target: <.> 199.7.91.13#53
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_reply
Mar 10 11:59:21 unbound[4813:0] info: iterator operate: query . NS IN
Mar 10 11:59:21 unbound[4813:0] info: response for . NS IN
Mar 10 11:59:21 unbound[4813:0] info: reply from <.> 199.7.91.13#53
Mar 10 11:59:21 unbound[4813:0] info: query response was THROWAWAY
Mar 10 11:59:21 unbound[4813:0] info: processQueryTargets: . NS IN
Mar 10 11:59:21 unbound[4813:0] info: sending query: . NS IN
Mar 10 11:59:21 unbound[4813:0] debug: sending to target: <.> 199.7.91.13#53
Mar 10 11:59:21 unbound[4813:0] debug: cache memory msg=66072 rrset=66072 infra=8105 val=66368 subnet=74504
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_reply
Mar 10 11:59:21 unbound[4813:0] info: iterator operate: query . NS IN
Mar 10 11:59:21 unbound[4813:0] info: response for . NS IN
Mar 10 11:59:21 unbound[4813:0] info: reply from <.> 199.7.91.13#53
Mar 10 11:59:21 unbound[4813:0] info: query response was THROWAWAY
Mar 10 11:59:21 unbound[4813:0] info: processQueryTargets: . NS IN
Mar 10 11:59:21 unbound[4813:0] info: sending query: . NS IN
Mar 10 11:59:21 unbound[4813:0] debug: sending to target: <.> 192.36.148.17#53
Mar 10 11:59:21 unbound[4813:0] debug: cache memory msg=66072 rrset=66072 infra=8402 val=66368 subnet=74504
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_reply
Mar 10 11:59:21 unbound[4813:0] info: iterator operate: query . NS IN
Mar 10 11:59:21 unbound[4813:0] info: response for . NS IN
Mar 10 11:59:21 unbound[4813:0] info: reply from <.> 192.36.148.17#53
Mar 10 11:59:21 unbound[4813:0] info: query response was THROWAWAY
Mar 10 11:59:21 unbound[4813:0] info: processQueryTargets: . NS IN
Mar 10 11:59:21 unbound[4813:0] info: sending query: . NS IN
Mar 10 11:59:21 unbound[4813:0] debug: sending to target: <.> 202.12Mar 10 11:59:21 unbound[4813:0] debug: sending to target: <.> 202.12.27.33#53
Mar 10 11:59:21 unbound[4813:0] debug: cache memory msg=66072 rrset=66072 infra=8699 val=66368 subnet=74504
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_reply
Mar 10 11:59:21 unbound[4813:0] info: iterator operate: query . NS IN
Mar 10 11:59:21 unbound[4813:0] info: response for . NS IN
Mar 10 11:59:21 unbound[4813:0] info: reply from <.> 202.12.27.33#53
Mar 10 11:59:21 unbound[4813:0] info: query response was THROWAWAY
Mar 10 11:59:21 unbound[4813:0] info: processQueryTargets: . NS IN
Mar 10 11:59:21 unbound[4813:0] info: sending query: . NS IN
Mar 10 11:59:21 unbound[4813:0] debug: sending to target: <.> 192.33.4.12#53
Mar 10 11:59:21 unbound[4813:0] debug: cache memory msg=66072 rrset=66072 infra=8996 val=66368 subnet=74504
Mar 10 11:59:21 unbound[4813:0] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_reply
Mar 10 11:59:21 unbound[4813:0] info: iterator operate: query . NS IN
Mar 10 11:59:21 unbound[4813:0] info: response for . NS IN
Mar 10 11:59:21 unbound[4813:0] info: reply from <.> 192.33.4.12#53
Mar 10 11:59:21 unbound[4813:0] info: query response was THROWAWAY
.27.33#53
(Followed by many more "sending to target xxx.xxx.xxx.xxx with THROWAWAY response.)
 
 


Reply 0 0
Reply