← How-Tos
raspberry-pi Jul 3, 2026 ◑ 1 views ◯ 1 min read

Pi-hole Setup: Network-Wide Ad Blocking

pi holednsad blockingnetworkraspberry pi

What You Need

Install

curl -sSL https://install.pi-hole.net | bash

The installer walks you through picking your upstream DNS (Cloudflare 1.1.1.1 or Quad9 9.9.9.9 are solid privacy-respecting choices), and which blocklists to subscribe to. Accept the defaults on first run — you can tune blocklists later from the admin UI.

Point Your Network at It

Two ways to do this, pick one:

Verify It's Working

dig doubleclick.net @<pi-ip>

You should get 0.0.0.0 back instead of a real IP. The admin dashboard at http://<pi-ip>/admin shows live query stats — you'll be surprised how many requests get blocked in the first hour.

Redundancy

If the Pi goes down, your whole network loses DNS. Two options: run a second Pi-hole as a backup DNS server (most routers let you specify a secondary DNS), or set your router's secondary DNS to a public resolver like 1.1.1.1 as a fallback — you lose ad-blocking during an outage but keep internet access.

Common Gotchas