TL;DR A forwarding resolver asks a single upstream for every answer — Google’s, Cloudflare’s, your ISP’s — and that upstream gets your entire question history, in order, with your IP attached. Pi-hole’s own docs put it plainly: “Whom can you trust?… Right, you can’t.” The fix is recursion: run unbound on the same Raspberry Pi that already runs Pi-hole, and the resolver walks root → TLD → authoritative servers itself, so no single party can log the whole path (they each see one slice). Zero new hardware; the documented trade is latency — a first query to an unfamiliar TLD can take up to a second, then same-TLD queries cache below 0.1 s. The pre-flight that decides everything: two
digtests against a root server — if your ISP intercepts port-53 DNS, recursion quietly dies and the tests show it before you commit. Status at my house: not done yet. It is the next change on the box that already runs Pi-hole v6 (FTL 6.9) and Caddy 2.11.9 — this is the recipe, pre-assembled from Pi-hole’s guide, for when the maintenance window opens.
The trust problem, in one paragraph #
Pi-hole forwards after filtering: your clients ask the Pi, the Pi checks its cache and the block lists, and anything unresolved goes to the configured external upstream. The docs’ objection: “Recently, more and more small (and not so small) DNS upstream providers have appeared on the market, advertising free and private DNS service, but how can you know that they keep their promises? Right, you can’t” (Pi-hole docs, unbound guide, page dated 2026-09-12). One upstream sees every question. Recursion splits the question across the hierarchy — root, TLD, authoritative, each seeing only its slice — and Google’s resolver gets asked about Google, never about the newspaper you read.
Pre-flight: two tests before installing anything #
Some ISPs “intercept and redirect outbound DNS traffic on port 53 to their own resolvers, without any indication that this is happening” (Pi-hole docs, 2026-09-12). Recursion needs unfiltered access to root servers, so run both tests on the Pi first:
- UDP reachability + interception check —
dig @198.41.0.4 . NS +norec +time=3. A genuine root answer carries theaa(authoritative) flag and nora(recursion-available) flag. An intercepted one showsrapresent andaalikely absent. - Identity check —
dig @198.41.0.4 version.bind CH TXT +time=3. A real root server answersATLAS. Interception proxies generally mangle this or time out.
If either fails, fix the interception (or move to encrypted upstream DNS with DoH/DoT — DNS over HTTPS or TLS — a different recipe) before installing unbound. The docs flag a third gotcha for CG-NAT (carrier-grade NAT) users: TCP/53 must also pass, since large DNSSEC responses and retries use it.
The install, condensed from the official guide #
| Step | What | Key detail |
|---|---|---|
| 1 | Install unbound | sudo apt install unbound — package pulls dns-root-data with the root hints automatically |
| 2 | The resolver config | Pi-hole ships a suggested pi-hole.conf for /etc/unbound/unbound.conf.d/. The load-bearing lines: interface: 127.0.0.1 + port: 5335 (listen only for Pi-hole), do-udp: yes + do-tcp: yes, harden-dnssec-stripped: yes (discard BOGUS signatures), harden-glue: yes, edns-buffer-size: 1232 (OARC/Flag-Day-2020-friendly), prefetch: yes, and private-address: entries for all RFC1918 + link-local ranges |
| 3 | Debian Bullseye+ fix | Disable unbound-resolvconf.service and strip the unbound_conf= line from /etc/resolvconf.conf — otherwise resolvconf points the box’s own DNS at the wrong port |
| 4 | Point Pi-hole at it | Settings → DNS → Custom 1: 127.0.0.1#5335, all other upstreams unticked |
| 5 | Verify the path | dig pi-hole.net @127.0.0.1 -p 5335, then check Pi-hole’s log shows the query forwarded to 127.0.0.1#5335 |
| 6 | Verify DNSSEC | dig fail01.dnssec.works @127.0.0.1 -p 5335 → SERVFAIL (the BOGUS one gets rejected); dig +ad dnssec.works … → answer with ad (authentic data) flag |
(All steps per Pi-hole’s official unbound guide, docs.pi-hole.net, page dated 2026-09-12 — fetched 2026-12-03.)
The trade-offs, stated #
- Latency: the first query to an unknown TLD can take up to a second (with DNSSEC often more); same-TLD queries afterward are typically <0.1 s with the resolver’s caching doing the work (Pi-hole docs). A house of cached repeat traffic mostly stops noticing after the first minutes.
- Availability: the resolver’s correctness now depends on a clean UDP and TCP path to the root servers — the pre-flight tests are not optional.
- One box, one role mix: Pi-hole FTL (filtering/cache), Caddy (reverse proxy), and unbound (recursion) would share one Raspberry Pi. FTL and unbound already cooperate by design (5335 upstream); the real constraint is that the box is the network’s single point of failure — which my baseline piece owns honestly and which backup discipline has to cover.
Where this sits at my house #
Not installed yet — said plainly. The Pi at 192.168.0.36 runs Pi-hole FTL 6.9 serving six local .yy hostnames and Caddy 2.11.9 forwarding; unbound is the next change on the list, pre-flighted by the two dig tests above. When it is done and has run alongside a census week, the measured before/after becomes its own short note.
Caveats #
- The recipe here condenses Pi-hole’s official guide (fetched 2026-12-03) — read the original in full before touching
/etc/unbound; it covers apparmor logging,so-rcvbuffixes, and uninstall paths this piece skips. - No ISP-interception test has been run for publication here; the pre-flight decides feasibility on your network, and my network’s answer is unpublished until run.
- Not security advice. DNSSEC validation can break captive portals and some corporate networks for phones that take the house’s resolver with them.
Sources #
(all fetched 2026-12-03)
- Pi-hole docs — unbound recursive-resolver guide, page dated 2026-09-12 (trust argument; ISP port-53 interception warning; the two root-server
digtests incl.ATLAS; config lines; validation tests; latency trade-off) (docs.pi-hole.net) - Pi-hole docs — FTL privacy levels (context for the companion census piece) (docs.pi-hole.net)
- Author’s internal infrastructure notes, 2026-11-14 — Pi-hole v6 (FTL 6.9), Caddy 2.11.9, six
.yyhostnames on 192.168.0.36 (internal reference)