The DHCP Question
Scope: whether Pi-hole should also be your network's DHCP server — the service that hands each device its address and settings. This is the one chapter whose subject the lab deliberately did not switch on; it is argued from the machinery verified in the other chapters plus the project's documentation, and labelled as such.
What DHCP has to do with DNS
Chapter 2's normal arrangement is a split job: the router runs DHCP (handing out addresses along with "your DNS server is the Pi-hole"), and Pi-hole answers questions. It works, and it has one persistent gap — Pi-hole sees questions from addresses, and its names for your devices are only as good as your local records and guesswork. The router knows which device asked for which address, and mostly keeps that knowledge to itself.
Making Pi-hole the DHCP server merges the two desks. The engine learns each device's name from its own lease request, and three things improve at once:
- Names for free. Leased devices become
local DNS entries automatically — the
phone that introduced itself as
kats-phoneis answered for by that name with no list-keeping (chapter 4's "learned from DHCP", documented there). - Clients you can recognise. Group rules (chapter 5) key on identity; the DHCP server assigns the same address to the same device every time (a lease reservation, set in the same place) and can key clients on MAC address with a straight face.
- One place to look. Addresses, names, and questions in a single interface, instead of split between a router's admin pages and Pi-hole's.
In the lab's engine the switch sat exactly where you'd expect, and sat off:
$ pihole-FTL --config dhcp.active
false
The costs, stated as plainly
- It's a bigger piece of infrastructure. DNS failing is an inconvenience you can route around by hand; DHCP failing means new and renewing devices get no address at all. You are deepening the house's dependence on one small box, and you should only do it on a box you'd trust with that (chapter 2's always-on advice applies twice).
- The router's DHCP must actually go off. Two DHCP servers on one network is a race you will eventually lose at an inconvenient hour. The change is: router DHCP off, Pi-hole DHCP on, in that order, once — and some routers bury or resist the setting.
- Some routers can't be told. A few ISP-supplied routers refuse both "use this DNS server" and "turn my DHCP off", which is precisely the situation where Pi-hole-as-DHCP becomes the only way to put a household behind it. Know which situation you're in before choosing.
- The move is felt device by device. Existing leases keep their old settings until they renew, so for a day the house is half-migrated and the query log shows it. That's normal, and the log is how you watch the migration finish.
The verdict shape
Stay split if: the router cooperates with the DNS setting, your naming needs are covered by a handful of local records, and you value the smaller blast radius. It's the arrangement most houses should run, and nothing in this guide's other chapters depends on choosing otherwise.
Move DHCP to Pi-hole if: the router won't let you set DNS at all; you want per-device names and rules to be effortless rather than maintained; or you're already keeping the box up like infrastructure and the extra duty is honestly priced in.
Either way, decide on purpose. The only wrong answers are drifting into it because a tutorial said so, and running two DHCP servers because nobody noticed the router's was still on.
Check: you should be able to name what Pi-hole gains by serving DHCP (names from leases, stable client identity, one desk) and what it risks (address-giving itself becomes its outage). Chapter 8 is the maintenance chapter — what keeping this thing healthy actually involves.