Skip to content

Pi-hole for Mere Mortals

Every device in your house is constantly asking the same question — where is this name? — and the asking is called DNS. Pi-hole is a small program that offers to be the one who answers. Once your whole network asks it instead of asking the internet at large, it can politely decline to answer for the names whose only job is advertising and tracking — and one refusal at the DNS desk covers every phone, tablet, TV, and gadget in the house, including the ones that will never offer you an ad-block setting of their own. This guide explains how that trick works, where its edges are, and how to read what it is doing in its own query log.

The lab is stated up front, because the honesty is the point: this guide's claims rest on the project's own engine — pihole-FTL, version 6.8, the official release binary, checksum-verified — run by hand in a sandbox, answering real DNS queries from the dig tool. Blocklist blocking, an exact-deny rule, a regex rule, local names, a per-device group that blocks a name for one client and not for another, the query log and the statistics API: all of it was exercised live against an invented household on an invented network, and the transcripts are kept with the guide. Three things the sandbox could not do are labelled rather than performed: no Docker daemon exists there, so the container install is described, not run; the full installer is a system-level install and is likewise described from the project's documentation; and gravity — Pi-hole's list-compiling machinery — is a script the standalone engine does not carry, so the lab planted the same database rows a gravity run produces and proved the answering from there. What the engine does with those rows is Pi-hole's core skill, and that part is not simulated. criteria.md keeps the full ledger.

What this guide covers

  • What Pi-hole is — the mental model: DNS as the one choke point every device must pass, what an answer and a refusal look like, and the lab
  • Installing Pi-hole — the shapes it comes in — installer, container, bare engine — compared honestly, and the step that actually matters: getting a network to ask it
  • Gravity and blocklists — where the blocked names come from, the exact and regex lists you add yourself, allowlists, blocking modes, and the note the engine attaches to a refusal
  • Local DNS records — names for your own machines: printer.home.arpa instead of 192.168.50.40, and what the engine answers from its own desk
  • Groups and clients — different rules for different devices, with the lab's Bedtime group blocking one name for one client only, proven both ways
  • Reading the query log — the log as the product: every question, who asked, and what the engine did — forwarded, cached, or refused, and why
  • The DHCP question — whether Pi-hole should also hand out your network's addresses, what that buys (names for everything), and what it costs
  • Updating and restarting — gravity on its weekly rhythm, updating the software itself, and the restart that restarts more than you asked for
  • Honest limits — what DNS blocking cannot do: ads that arrive from the same name as the programme, apps that bring their own DNS, and the difference between a filter and a firewall
  • Recipes — a first blocklist beyond the default, a bedtime rule, a name for the printer, and the temporary disable for the site that breaks
  • Troubleshooting — nothing is blocked, one site breaks, one device ignores the rules, and the answers still arriving stale
  • Glossary — the terms, collected in one place

What it doesn't cover

Running Pi-hole as a business or campus service, high-availability pairs, and recursive-DNS companions (such as running your own Unbound) beyond naming why people pair them. Blocking at other layers — browser extensions, firewalls, VPN tunnels — appears only where it marks Pi-hole's edge. The web interface's every screen is not walked; the guide works through the API the interface itself uses, because the standalone engine ships without the interface's files and honesty about that seam turned out to be more instructive anyway.

How to use this guide

Read chapter 1 for the model. Chapter 2 is the decision chapter — which shape, on which box, pointed at by which setting. Chapters 3 to 6 are the working reference, in the order you will meet the questions: what is blocked, what your own machines are called, who gets which rules, and how to watch it all happen. Chapter 7 is a genuine choice to make on purpose rather than by accident. Chapters 8 and 9 are for later, when you are maintaining the thing and wondering why it didn't catch something. The transcripts the chapters quote live in pi-hole-lab/transcripts/; the lab's own notes are examples/lab-notes.txt.


Part of the series

This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.

Related guides:

License

The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.