↓ Skip to main content
  1. Tech & Lab/

The Seven-Day Home DNS Census: a Method, Before Any Results

Author
Yauheni Yakauleu
Short, practical articles on quant methods, alternative data, and applied AI. Code Insights, Touch IT LLC.

TL;DR The average US internet household runs 17.6 connected devices (Schneider Electric/Parks Associates survey fielded Dec 31, 2024–Jan 10, 2025) — and my home-privacy baseline piece argues the biggest one of those is not the smart TV whose ad domains you can block. Before replacing or segregating anything, run this: a seven-day census of Pi-hole’s query log, sorted by client, not by block hits. Method in one line: set Pi-hole’s resolver engine (FTL) to privacy level 0 for one week, let the long-term database capture everything, then rank clients by total queries, domains per client, and share of internal (.yy) vs external traffic — and restore the privacy level after. Two honest notes up front: this article contains no results — the census at my house is yet to run (the results piece follows once there is data), and level 0 means a week of plaintext queries stored on your own disk: the census is itself a small privacy trade you make with yourself, for a map.

Why sort by client, not by block hits
#

Block-hit counts measure your blocklists. They answer “how much did Pi-hole refuse?” — a number that mostly flatters the setup.

The privacy question is different: which device in this house phones home to whom? That answer lives in the query log grouped by the client column. A device making 50,000 queries a week to telemetry domains is the one worth a firmware check or a VLAN — regardless of how many ads it happened to trigger.

The house-scale anchor: 91% of US households have internet at home, 92% of those run Wi-Fi, and the average sits at 17.6 connected devices spanning computing, entertainment, appliances, smart-home, and health gear (Schneider Electric/Parks, fielded 2024-12-31–2025-01-10). Seventeen-ish devices is eighteen candidates to rank.

The method, step by step
#

Step Do Detail
1 Note the current privacy level Pi-hole’s FTL has four privacy levels — 0 “show everything” through 3 “anonymize everything” (Pi-hole docs, checked 2026-12-03). Level 3 disables the query log and long-term database logging entirely
2 Set level 0 for the run Settings → API/Web interface → privacy level (or the FTL config; no resolver restart needed). Level 0 keeps all statistics — which is exactly what the census needs
3 Leave it alone for seven days No list edits, no new blocklists mid-run — you want a clean window, and the box needs to be on (it is the single DNS point of a Pi-hole house)
4 Rank by client Query Log and Long-term data views: total queries per client, distinct domains per client, blocked share per client
5 Classify the traffic Internal (the local .yy records — never left the resolver) vs external (everything that went upstream); per-house rule of thumb: a device whose traffic is mostly internal is one your local-first layer is already absorbing
6 Restore the privacy level Set it back to whatever you ran before — the one-week window is a deliberate trade, not a new normal

What I expect to find (a plan, not a prediction)
#

Labeled as expectation, honestly: the census will likely rank a phone app or a streaming device — not the TV — as the heaviest external talker, because app telemetry goes to its vendor’s endpoint on schedules you cannot see, while big TV ad domains are already absorbed by any sane blocklist. And the .yy internal names should make one thing visible at a glance: traffic that never left the box vs traffic that did — immich.yy and ha.yy stay home; a telemetry domain goes out.

That is a hypothesis. The measured piece — the client ranking, the domains behind it, and which device actually wins the “biggest leaker” title — gets its own article when the week is done.

The trade you are making
#

Level 0 for a week means every plaintext query in the house sits in the box’s long-term database. It never leaves the LAN — it is your resolver, your disk — but treat it like what it is: a window of concentrated introspection. Restore the level after, and keep the census itself out of routine operation.

Caveats
#

  • No results in this article. Every number here is either the house-scale anchor (Schneider Electric/Parks survey) or the method itself. The one-week run at the author’s house has not happened yet.
  • Pi-hole FTL privacy levels per the official docs (checked 2026-12-03): level 0 shows everything; level 3 disables query log and long-term database logging. Levels are changeable without restarting the resolver; hidden details cannot be disclosed by lowering the level later.
  • A single Raspberry Pi is a single point of failure — if it dies mid-census, the week restarts. That is also part of the baseline it belongs to.

Sources
#

(all fetched 2026-12-03)

  • Pi-hole docs — FTL privacy levels (levels 0–3; level 3 disables query log and long-term database logging; changeable live) (docs.pi-hole.net)
  • Schneider Electric white paper citing Parks Associates — survey of 8,015 US heads-of-internet households, fielded 2024-12-31–2025-01-10 (91% internet, 92% Wi-Fi, 17.6 connected devices) (PDF)
  • Author’s internal infrastructure notes, 2026-11-14 — Pi-hole v6 (FTL 6.9) on a Raspberry Pi; six local .yy hostnames (internal reference)

Related

Build an Apple Home-Style Dashboard on a Mac or Raspberry Pi (Powered by Home Assistant)

I really like the Apple Home app: dark tiles, a badge that lights up, no thinking about protocols. What I don’t like is being limited to what Apple decides to surface, with the only escape hatch being HomeKit bridges. Here’s the deal I actually want: the same experience, self-hosted, running on the Mac (or a Raspberry Pi) that already sits on my home network, talking to Home Assistant — which is already the brain of the house. That turned out to be one Python file, standard library only. This post is a complete, verified walkthrough: every output below is from a real run.