Pi-hole: An ad-free home network in five minutes


I still had a Raspberry Pi 1 lying around and wanted to give it something useful to do.

That's how I found Pi-hole: a network-wide ad blocker. Instead of installing a browser extension on every phone, tablet and computer, Pi-hole filters DNS requests for devices using it as their DNS server.

What difference does it make? Here's my before-and-after comparison from 2017:

Before:

After:

Installation

The original installation was remarkably straightforward: install Pi-hole on a Linux device (my Raspberry Pi, in this case) and tell the router to hand out its IP address as the DNS server.

Pi-hole still provides an official installer. Check the current instructions at pi-hole.net instead of blindly executing a command copied from an old blog post.

The traditional one-line installer looks like this:

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

Security note: Piping a downloaded script straight into a shell is convenient but comes with trust implications. Read the installation script and verify the official source before running it. The installer and supported operating systems may have changed since 2017.

In my Fritz!Box, I configured the Pi's address as the DNS server. At the time it was 192.168.1.62:

That's basically it.

One realistic caveat: Pi-hole blocks at the DNS level. It doesn't remove every advert, especially when ads and content come from the same domain. And if your only DNS server is the Pi, losing the Pi can make the whole network look like the internet is down. Plan accordingly.

Originally written in July 2017; installation details and screenshots reflect that setup.

Previous Next