What Pi-hole Is
Scope: the mental model — DNS as the one choke point every device must pass — plus what an answer, a refusal, and a log entry look like, and the lab this guide's claims rest on.
The one-paragraph version
Before your browser can fetch anything, it
needs an address, and it gets one by asking
a DNS server: where is
example.com? The DNS server answers with
numbers — 93.184.216.34, say — and only
then does the actual fetching begin.
Pi-hole is a DNS server you run
yourself, in your own house, that has a
list of names it refuses to resolve: the
advertising networks, the trackers, the
telemetry endpoints. Ask it for one of
those and it answers 0.0.0.0 — a polite,
useless nowhere — and the ad is never
fetched because its address was never
learned. Ask it for anything else and it
passes the question to a real upstream
resolver and hands you the genuine answer.
That is the whole mechanism. Everything
else in this guide — blocklists, groups,
logs — is bookkeeping around that single
moment of answering or declining.
Why DNS is the choke point
The trick works because of where DNS sits. A browser extension can only guard one browser. A hosts file guards one computer. But every device — the TV, the doorbell, the game console, the fridge with opinions — must resolve names before it can talk to the internet, and most of them will happily use whichever DNS server your network tells them to. Put Pi-hole at that desk (chapter 2 covers the telling) and a single installation covers the household, including devices with no settings screen at all. In the lab, the engine described itself in its startup log before answering anything:
INFO: FTL version: v6.8
INFO: listening on 0.0.0.0 port 8053
INFO: listening on :: port 8053
(Real installs listen on port 53, the DNS
port; the lab used 8053 so it could run
without disturbing the bench. The full log
excerpt is pi-hole-lab/transcripts/t07.)
Three answers, seen for real
The lab asked its engine three questions. A normal name, forwarded upstream and answered truthfully — the address shown is the sandbox resolver's stand-in; yours will be the real one:
$ dig @127.0.0.1 -p 8053 example.com A +tcp
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 461
;; ANSWER SECTION:
example.com. 15 IN A 198.18.52.126
A name on the blocklist, refused on the
spot. Note the middle line: Pi-hole says
it blocked the name, and why — EDE is
Extended DNS Error, and (gravity) names
the blocklist machinery of chapter 3:
$ dig @127.0.0.1 -p 8053 ads.specimen.test A +tcp
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31129
; EDE: 15 (Blocked): (gravity)
;; ANSWER SECTION:
ads.specimen.test. 2 IN A 0.0.0.0
And a name that exists only in the house — the engine answers from its own desk (chapter 4) and never asks upstream at all:
$ dig @127.0.0.1 -p 8053 printer.home.arpa A +tcp
;; ANSWER SECTION:
printer.home.arpa. 0 IN A 192.168.50.40
Every query — answered, refused, or answered locally — is written to a log with who asked and what happened (chapter 6). That log, more than the blocking, is what people end up valuing: for the first time, the house's devices tell you what they've been asking for.
What the pieces are
Pi-hole v6 is mostly one program. FTL
(the engine, pihole-FTL) is the DNS
server, the web server, the API, and the
log-keeper in a single binary built around
the battle-tested dnsmasq resolver. Around
it, a full install adds three things the
engine alone doesn't carry: the web
interface files it serves, the pihole
command-line tool, and gravity, the
script that downloads blocklists and
compiles them into the database FTL reads.
The lab ran FTL by itself — the engine is
where the answering happens — and
criteria.md is precise about which
missing piece mattered where.
What it is not
- It is not a firewall. It filters names, in the moment they're asked about. Anything that already knows an address, or brings its own way of asking, walks past it — chapter 9 is the honest tour of the gaps.
- It is not a VPN or a proxy. Your traffic never passes through Pi-hole; only the questions about addresses do. It adds no meaningful delay and sees no content.
- It is not an ad-blocker in the browser sense. It cannot tidy a page, remove a blank box, or block an ad served from the same name as the article you asked for. It works a layer lower, for everything, and that is both its strength and its ceiling.
Check: you should now be able to say what
happens when a device in a Pi-hole house
asks for a tracker by name — it is told
0.0.0.0, by a server in the same house,
because that server was given a list. If
that picture is clear, chapter 2 is about
getting the house to ask.