FL1GHT5 Lab • Networking

Set Up Pi-hole or AdGuard Home for Network-Wide Ad Blocking

Who This Is For

Beginner.

Think of it like a bouncer standing at the door for every website request that comes through your network. Ads and trackers try to get in, and the bouncer just turns them away before they ever reach your screen.

What You'll Build

Whole-home DNS filtering, plus a foundation for local service names.

Prerequisites

Pi-hole vs. AdGuard Home

Deploy It

$services:
$ pihole:
$ image: pihole/pihole:latest
$ ports:
$ - "53:53/tcp"
$ - "53:53/udp"
$ - "8080:80"

Choose a DHCP/DNS Architecture

Point Your Router at It

Set the router's DHCP DNS option to your Pi-hole/AdGuard Home IP.

Choose an Upstream DNS Provider

Cloudflare (1.1.1.1), Quad9 (9.9.9.9), or your ISP's resolver are all reasonable choices, pick one with a privacy policy you're comfortable with.

Allowlist Broken Services

Some apps break under aggressive blocklists, allowlist specific domains as needed rather than disabling blocking entirely.

Add DNS Redundancy

Configure a second DNS server (router fallback, or a second Pi-hole instance) so a single outage doesn't take down DNS for the whole house.

Security & Backup Notes

Troubleshooting

Lab Finish Line

Whole-home DNS filtering plus local service names.

What to Build Next

Planning a business implementation?

Explore our infrastructure and systems services.

View services