Recipes
Scope: five jobs assembled from machinery the earlier chapters proved. Where a step belongs to the full install's interface rather than the lab's API, it is named as the same action in friendlier clothes.
1. Give the printer a name
The smallest recipe and the one visitors notice. On a full install: Local DNS → DNS Records, add address and name. The lab's form (chapter 4):
pihole-FTL --config dns.hosts \
'[ "192.168.50.40 printer.home.arpa" ]'
Ask it once to prove the desk answered —
dig @<pi-hole> printer.home.arpa — and
you have replaced a memorised number with
a word, for every device in the house at
once.
2. A bedtime rule for one tablet
The chapter 5 machinery, end to end:
- Make a group (
Bedtime). - Add the client — the tablet, by the address your DHCP reservations keep fixed — to Default and Bedtime.
- Write the rule into Bedtime only: an exact deny for the game's name, or a regex for its family.
- Prove it both ways while you're standing there: from the tablet (refused), from your phone (resolved). The lab's two-answer proof is transcript t04.
Membership is by hand or by API call, so "bedtime" starts when you say so. If the household wants a clock, a scheduled API call from any little scheduler is the honest way people build one — your automation, not a hidden feature.
3. The site that breaks at checkout
The most common Pi-hole support story, played correctly:
- Reproduce the breakage once.
- Open the query log and look at what that device asked for in that minute. The refused names are marked GRAVITY or DENYLIST (chapter 6's vocabulary).
- Allowlist the one refused name the checkout plausibly needed — exact allow, Default group — and retry.
- Repeat sparingly. You are carving a named exception, not uninstalling the filter one name at a time.
Resist the two tempting shortcuts: the big disable switch left off (chapter 8 shows how easy it is to leave it off), and deleting the whole blocklist that contained the name (a sledgehammer that also deletes ten thousand good refusals).
4. Adding one more blocklist (and knowing when to stop)
On a full install: Adlists, add the list's URL, run gravity, and read gravity's report — including how many names it actually added. Then live with it a week before adding another. Judgement rules that age well:
- The shipped starter list is somebody's curated balance of coverage and breakage; departures should be for a observed problem (a device whose chatter shows in your log) rather than for a bigger number.
- One list per purpose, commented with why it's there — your future self, mid- troubleshooting, is the audience.
- If a category of breakage appears after an addition, the newest list is suspect one; remove it and let gravity rebuild before investigating anything deeper.
5. Prove the house is actually asking
After any install or router change, the five-minute audit:
- From a phone on the house Wi-Fi, browse somewhere new.
- In the query log, find the phone (by the address your DHCP gave it) and its question, with a sane verdict.
- Repeat from the smart TV — the device class most likely to have been silently using its own resolver all along (chapter 9). No log lines from it at all is a finding, not a mystery: it isn't asking you.
- Check the dashboard's client count against the devices you believe exist.
If step 2 shows nothing, the house isn't behind the filter yet and chapter 2's router setting is the place to re-check — not the lists, which can't refuse a question they never hear.
Check: each recipe names its proving step. A Pi-hole change without a query-log check afterwards is a hope, and this household runs on evidence.