Local DNS Records
Scope: the other half of running the neighbourhood's name desk — names for your own machines, answered locally, never sent upstream. The two records the lab planted answered for real; the variations are marked where they're described rather than run.
Why your own names matter
A house accumulates machines with web
pages and login prompts: the router, the
printer, the network storage, the Pi-hole
itself. Their addresses — 192.168.50.40 —
are forgettable, changeable, and identical
in shape to every other string of numbers
you mistype. A name is none of those
things. Pi-hole, already answering every
DNS question in the house, will happily
answer for names that exist nowhere on the
internet: your names, for your boxes,
so that printer.home.arpa opens the
printer from every device in the house.
The suffix: home.arpa
Names need a surname. The internet's real
surnames (.com, .org, …) belong to
other people, and using one — squatting on
printer.com — invites confusion the day a
real site by that name matters. Two safe
choices:
home.arpa— reserved by the internet's own standards body (RFC 8375) exactly for home networks. It can never be sold, delegated, or collide with a real service. The lab used it.internal— reserved by ICANN in 2024 for private use, the newer alternative.
What you will see on older advice —
.local, .lan, .home — carries
baggage: .local is claimed by the mDNS
protocol (Bonjour/Avahi) and can behave
strangely, and .lan/.home are
unreserved, which means "not yet". The
lab's FTL also answers to its own name,
pi.hole, for the Pi-hole itself — a
built-in courtesy every install gets.
Planting a record
A local record is one line of
configuration: an address and a name. The
lab set two, with the same --config
screwdriver the install chapter used, and
read them back (transcript t08):
$ pihole-FTL --config dns.hosts
[ 192.168.50.40 printer.home.arpa, 192.168.50.41 nas.home.arpa ]
On a full install the web interface's
Local DNS → DNS Records page is the same
list with friendlier editing; the engine
doesn't care which hand wrote it. And here
is the record working — asked by dig,
answered by the engine itself, which is
why the log later shows no upstream
involved and the answer carries the
tell-tale lifetime of 0 (local answers
aren't cached from anywhere; they're
known):
$ dig @127.0.0.1 -p 8053 printer.home.arpa A +tcp
;; ANSWER SECTION:
printer.home.arpa. 0 IN A 192.168.50.40
$ dig @127.0.0.1 -p 8053 nas.home.arpa A +tcp +short
192.168.50.41
Every device using Pi-hole can now use those names, including the ones with no hosts file you could ever edit. Change the printer's address and you change one line, in one place, and the house follows.
The neighbouring features, honestly labelled
Three relatives of the plain record live nearby in a full install; the lab did not exercise them, and they're described here from the project's documentation so you know they exist:
- CNAME records — a name that points
at another name (
music.home.arpa→nas.home.arpa), so services can move between boxes without every client learning a new name. - Names learned from DHCP — if Pi-hole is also the DHCP server (chapter 7), it learns each device's name as it hands out its address and answers for it automatically; no hand-kept list.
- Conditional forwarding — "for names under this suffix, ask that server": the bridge to a router or another network that keeps its own name desk.
What local records are not: they are not how you block things (that's chapter 3's lists, though beginners often try), and they don't make a machine reachable — a name is not a road. The printer still has to be on, awake, and willing to talk.
Check: your phone can open nas.home.arpa
in a Pi-hole house because the phone asks
Pi-hole for every name, and Pi-hole was
told that name at its own desk. Chapter 5
asks the natural next question — should
every device get the same answers?