Pi-hole is a DNS sinkhole. You point your home network's DNS at the Pi, and the Pi silently refuses to resolve domain names belonging to ad networks, trackers, and analytics services. Result: ads disappear in browsers, mobile apps, and even smart TVs — without installing anything on individual devices.
Why a Pi Zero W is enough: Pi-hole's resource needs are tiny. Even at 50 devices on a busy network, CPU stays under 5% and RAM under 200MB. The Zero W's $15 price + low power draw make it ideal.
Parts
- Raspberry Pi Zero W (or Zero 2 W)
- Micro USB power supply (2.5A recommended)
- 8GB+ SD card
Step 1 — Flash Raspberry Pi OS Lite (no desktop needed) with Imager. In the gear menu: set hostname (pihole.local), enable SSH, set Wi-Fi SSID + password, set username + password.
Step 2 — Boot the Pi, wait 2 minutes, then SSH in
ssh pi@pihole.localStep 3 — Run the official Pi-hole installer
curl -sSL https://install.pi-hole.net | bashStep 4 — Follow the on-screen prompts. Defaults are fine except:
- Choose your upstream DNS — I use Quad9 (9.9.9.9) for the privacy + malware blocking.
- Confirm the static IP it suggests (or set one manually). PIN this in your router's DHCP reservations!
- Install the web admin UI: yes.
- Log queries: yes (you'll want the stats).
Step 5 — At the end of install, note the web password. Browse to http://pihole.local/admin and log in.
Step 6 — Point your router at the Pi. In your router's DHCP settings, replace the primary DNS with the Pi's IP. After the next DHCP lease renewal (or a quick reboot of each device), all devices use Pi-hole.
Recommended block lists
- StevenBlack/hosts (the standard)
- Add OISD basic for extra coverage
- Don't over-block — a too-aggressive list will break legitimate sites and your family will revolt.
Troubleshooting
- Some sites won't load → check the query log, whitelist the broken domain.
- Smart TVs / Roku may use hardcoded DNS (8.8.8.8). Block port 53 outbound at your router to force them through Pi-hole.
- Pi-hole crashes weekly → almost always SD card corruption; use a good-quality A1+ card.
Quick win: my Sunday browsing now feels faster, and the YouTube app on the kids' tablet has fewer ads. About 18% of all DNS queries get blocked on my network — eye-opening.