Skip to content

Writing Criteria

Every guide in this repo is written to the same standard. If you're adding or editing a guide — human or AI — hold it to these.

  1. Plain words, real ideas. Simple language, never dumbed-down concepts. Explain jargon on first use; collect terms in the glossary.
  2. No hype. No marketing adjectives, no "revolutionary," no promises about what something will do for the reader.
  3. Honest about limits. Say what the thing can't do. State uncertainty instead of smoothing it over. Validation notes include what remains unverified.
  4. No invented numbers. Benchmarks, defaults, and specs are either measured or qualified with "depends on your setup." If it wasn't tested, say so.
  5. Checkable. Commands are meant to be run, with "Check:" blocks showing what success looks like. Sources are linked, not asserted.
  6. Respect the reader's setup. Call out Windows/Mac/Linux differences. Don't assume a GPU, a budget, or prior experience.
  7. Safety isn't skipped. Real risks get stated plainly, not buried.
  8. Scoped. Each guide says what it covers and points elsewhere for the rest. No guide pretends to be the whole subject.
  9. Structure over prose. Tables, before/after examples, symptom → fix. Scannable beats essay.

Verification notes for this guide

Standard 3 and 4 applied to this guide, specifically. There was no home network and no second machine on the build bench — one sandbox computer (x86_64, Ubuntu 24.04) and the project's own engine, downloaded, not installed: pihole-FTL v6.8, the official pihole-FTL-amd64 binary from the FTL project's GitHub releases, SHA-1 verified against the project's published checksum (212b1e42f1d970e8d61cdb25f6a19e1668826e8f). It ran unprivileged-by-design on loopback: DNS on port 8053, web/API on 8081, configured entirely through its own pihole-FTL --config interface. Every quoted engine behaviour in the chapters is a capture from that binary; transcripts are kept with the build (pi-hole-lab/transcripts/, t00–t09) and the lab's diary is examples/lab-notes.txt.

Assembling the engine honestly. FTL alone is not a whole Pi-hole, and the seams are findings, not embarrassments:

  • FTL does not create its blocklist database. With /etc/pihole/gravity.db absent it logged Gravity database not available and would not answer queries. The lab created the database from the project's own published schema (the core repository's advanced/Templates/gravity.db.sql, fetched 2026-10-21) — the same artefact an install uses.
  • A schema-fresh database also lacks the info bookkeeping a gravity run writes (updated, gravity_count, antigravity_count); FTL retried the missing rows once a second and stayed mute. The lab wrote those three rows the way gravity does, after which the engine answered normally (Blocking status is enabled, t07).
  • Gravity itself never ran. It is a core script the standalone engine does not carry; asked through the API, FTL answered Gravity failed (t06). So the lab planted the rows a gravity run produces: the specimen adlist registered (file:///etc/pihole/specimen-blocklist.txt, id 1), its three domains compiled into the gravity table, and gravity_count set to 3 to match. The group links for the adlist and the denylist were created by the schema's own triggers. Everything the engine does with those rows — answering, logging, counting — is genuine engine behaviour, and the chapters say which side of that line each claim sits on.

Verified by running, per chapter:

  • Ch. 1: the three answers are t01 verbatim — example.com forwarded and answered (the sandbox's substitute address, see Sandbox weather), the blocklisted ads.specimen.test refused with EDE: 15 (Blocked): (gravity) and 0.0.0.0, and printer.home.arpa answered locally at 192.168.50.40 with TTL 0. The startup lines are t07.
  • Ch. 2: the bare-engine route is the lab itself: checksum (above), the first --config call writing the full pihole.toml (t00), settings applied and read back (t08), dnsmasq-test passing. The installer and container routes are Documented-only (below).
  • Ch. 3: the specimen adlist, its three gravity rows and the count of 3 are in the database and reported by /api/stats/summary (domains_being_blocked: 3, t02, t09). The exact deny (popups.specimen.test, API-created) answered 0.0.0.0 (t01); the regex deny (^ads[0-9]+\.specimen\.test$, API-created) refused the never-listed ads42.specimen.test with EDE: 15 (Blocked): (regex) (t05). The blocked answer's 2-second cache lifetime is visible in the same answers' TTLs — and bit once, see Capture hygiene.
  • Ch. 4: both planted records answered (t01): printer.home.arpa → 192.168.50.40, nas.home.arpa → 192.168.50.41; the read-back of dns.hosts is t08. CNAMEs, DHCP-learned names, and conditional forwarding are described, not run — labelled in place.
  • Ch. 5: the Bedtime group (API-created, id 1), a deny-exact for games.specimen.test scoped to group 1 only (API), and the client 127.0.0.1 placed in groups [0, 1] (API) produced the refusal with EDE ... (denylist) (t04). Removing the client removed the refusal; a second name (videos.specimen.test) repeated the pair cleanly, and the query log's status words — DENYLIST in the group, ordinary handling out of it — are quoted from the API in t04.
  • Ch. 6: unauthenticated API calls are refused (unauthorized, t02); the lab password (set through --config) earned a session; /api/queries shows the test queries with statuses GRAVITY, DENYLIST, and CACHE for the local record, with the local answer's reply time (~0.00008 s) as the engine reported it; two /api/stats/summary snapshots (t02, t09) bracket the lab — final: 42 queries, 11 blocked (GRAVITY 4, DENYLIST 6, REGEX 1, FORWARDED 4, CACHE 27).
  • Ch. 7: not run — deliberately. The only engine contact is the read-back dhcp.active = false (t08). The chapter is argued from the verified machinery plus the project documentation and says so in its scope note.
  • Ch. 8: the blocking switch both ways via POST /api/dns/blocking, with the refused name unrefused while disabled and back at 0.0.0.0 when re-enabled (t06); mid-flight list changes taking effect (chs. 3, 5); --version → v6.8 (t00); and the restart lesson is real: POST /api/action/restartdns terminated FTL (FTL terminated ... (internal restart)! in its log) and, with no supervisor on the bench, it stayed down until relaunched by hand. pihole -up and Teleporter are full-install surface, Documented-only.
  • Ch. 9: an argument, not a measurement — each limit is traced to the mechanism proven in ch. 1. Its one empirical neighbour (devices that never ask leave no log lines) is the same observation as troubleshooting's silent-device entry.
  • Ch. 10: the recipes assemble only the operations above; recipe 5's audit is the ch. 6 API read used throughout.
  • Ch. 11: troubleshooting entries from the lab cite their transcripts in place (t01, t03, t04, t07, t08 and the restart above); the rest are marked by their wording as documented behaviour.

Sandbox weather, stated once: the sandbox intercepts DNS. Queries addressed to public resolvers are refused; the sandbox's own resolver (198.19.0.1, the lab's upstream) answers — for names under real TLDs it synthesises addresses from the benchmarking range 198.18.0.0/15, so example.com shows 198.18.52.126 in these transcripts and will show its real address on a reader's network. For the reserved .test TLD, FTL answers NXDOMAIN itself and forwards nothing (its query log shows no upstream for those names); every specimen name lives under .test or .home.arpa precisely so it can never be a real internet name. Separately, the sandbox refused FTL's UDP replies (failed to send UDP reply: Operation not permitted), so every dig in the transcripts ran over TCP (+tcp); FTL serves both, and on a real network DNS is UDP first and none of this applies. The sandbox also has no pihole user, so transcripts carry FTL's chown_pihole() warnings — an artefact of the bench, not of an install.

Capture hygiene (declared trims): the API session id in t02 is shown only as an 8-character prefix; the lab's API password was a throwaway (maple-street-lab-password) and its stored hash is redacted in examples/pihole-lab.toml, because a config that can set a password is a secret even when it is a specimen. t04 contains two bracketed builder's annotations, declared in the file: they explain the out-of-group NXDOMAIN and the verdict the pair proves; no engine output was altered. An earlier attempt at the same test produced the lab's one false step — a retest inside the blocked answer's 2-second cache that returned the old answer; that capture was replaced by the clean sequence, and the incident is recorded in examples/lab-notes.txt, because chapter 3 teaches from it. Chapter quotations trim JSON with ellipses; the transcript files themselves are untrimmed. The startup excerpt t07 is one contiguous block from one start of the final lab instance.

Documented-only (not run), and why:

  • The full installer (curl | bash) and the pihole CLI: a system-level install (packages, service user, systemd units) that this bench does not perform on itself; and the CLI ships with the core the lab deliberately did not install. Installer behaviour, pihole -g/-up, Teleporter, and the weekly gravity timer are described from the project's documentation.
  • The Docker route: the sandbox has no Docker daemon (docker info fails), so the official image could not be run; the engine inside it is the binary the lab did run.
  • The web interface's pages: the standalone binary ships without the interface files — /admin/ returns 302 to a login page that then 404s (t03). The chapters therefore work through the API the interface itself calls (fully exercised) and describe the pages only as its front end.
  • Gravity's download-and-compile run: see Assembling the engine, above.
  • DHCP serving: no network exists in the sandbox for FTL to serve, and serving DHCP to a real one from a lab would be vandalism, not verification. Chapter 7 is analysis, labelled in its scope.
  • A second device, a router, phones: none on the bench. Client behaviour is proven from the bench as its own client (127.0.0.1); the router arrangements of chapter 2 are the project's documented ones.

Sources for the documented material, consulted 2026-10-21: the project's documentation (docs.pi-hole.net — install and Docker guides, the API and group management references), the FTL v6.8 release notes (github.com/pi-hole/FTL, release v6.8), and the core repository's gravity database schema (github.com/pi-hole/pi-hole, advanced/Templates/gravity.db.sql). home.arpa is RFC 8375; the internal TLD reservation is ICANN's (2024). Figures for real-world list sizes are given only as orders of magnitude ("hundreds of thousands" for a typical multi-list install) and are presented as such.

Specimen discipline, for the record: the household (Maple Street, 192.168.50.0/24), its printer and NAS, the Bedtime group, and every blocked name are invented; the names live under reserved suffixes (.test, RFC 8375's home.arpa) that cannot be real; the lab instance listened only on this machine's loopback ports and was stopped and removed after the build, together with its /etc/pihole and /var/log/pihole. No query in this guide was aimed at any system outside the lab, and no real household's traffic was ever in front of it.