All posts

Pi-hole: a fun experiment that became part of the house

Pi-hole started as a fun experiment ten years ago. Now it runs my home network: 4.27 million lookups in three months, 30% blocked, and even the light bulbs phone home.

A relaxed panda in a Dubai apartment sips a lemon mint cooler while a grumpy white Persian cat guards a Blocklist gate. Gadgets queue to get out, a light bulb with a suitcase and a phone asking Where am I?, while an ad and a tracker are stuck outside the door.

About ten years ago I put Pi-hole on a Raspberry Pi, mostly to see if it would work. It did, and it never left. Today it's as much a part of the house as the Wi-Fi, and in 2024 I bought a new Pi just for it.

Over the last three months, the devices in my house asked it 4.27 million questions. It said no to 30% of them.

Pi-hole is a DNS server. When a phone, a TV or, in my house, even a light bulb wants to reach a website or an app server, it first asks Pi-hole for the address. If the name is on a blocklist, Pi-hole answers with an empty address (0.0.0.0), and the ad, tracker or bad site never loads. Nothing needs to be installed on the devices.

It does two jobs. It guards: it stops a lot of apps and sites from reporting home. And it watches: it shows me what the devices in the house are up to.

The setup

  • A Raspberry Pi 5 (8 GB), on a network cable, bought in August 2024 for Pi-hole and nothing else. Pi-hole uses about 400 MB of it and runs at about 49 °C. It's overqualified, and I'm fine with that. My first Raspberry Pi, back in 2012, was a Model B with 512 MB in total.
  • Pi-hole v6.
  • The router hands out the Pi as the DNS server, so every phone, TV and guest device uses it automatically. The router also listed a second DNS address, which I took for a backup. It was the same Pi's Wi-Fi, which wasn't even connected. My backup was the same box, offline. I removed it.
  • Except my own Mac, the one device off the leash. I build and test websites, so I need to see them the way visitors do. It uses public DNS (8.8.8.8 and 1.1.1.1) directly.
  • Upstream: whatever Pi-hole doesn't block, it asks Google DNS (8.8.8.8).

What it guards against

From 1 September to 1 December 2026:

Lookups

4,268,254 (about 46,900 a day)

Different addresses on the network making them

43

Blocked

1,285,686 (30.1%)

Blocked by the blocklists

24.0%

Blocked by Pi-hole's built-in bypass protection

6.1%

The blocked share went up every month: 26% in September, 30% in October, 33% in November.

What gets blocked most is less "ads" than apps reporting home: app analytics and logging (app-measurement.com, firebaselogging-pa.googleapis.com), Netflix logs, Shazam beacons, Apple's own stats, and the usual ad servers (googleads.g.doubleclick.net, pagead2.googlesyndication.com).

It also guards the guard. iCloud Private Relay, and devices that look for an encrypted DNS server on the network, would send their lookups somewhere else and skip Pi-hole entirely. Pi-hole v6 has a setting for each, and both are on in mine. That's the 6.1%: about 260,000 lookups blocked.

What it showed me

The query log is the "watch" part. It shows every name each device looked up, and when.

The most-blocked domain was gs-loc.apple.com, Apple's location lookup. Apple devices don't take no for an answer. 34 addresses on the network asked for it, and one asked 3,345 times in a single day, about once every 26 seconds. Add api.smoot.apple.com (Spotlight suggestions, another 86,000) and the two made up 8% of every lookup in the house.

Neither is an ad. Both were blocked by only one aggressive list I've since dropped.

So a quarter of what my blocklists "protected" me from was Apple devices asking where they are, over and over. Without the log, I would never have known.

Even the light bulbs talk to the internet. Three of my smart bulbs have made about 3,100 lookups since June, checking the time and keeping a line open to their maker's cloud so the app can reach them. The rest of the smart home does the same. None of it is blocked. They're bulbs, and they're allowed to phone home.

The lists I ran then held about a million domains. In three months, the house needed about 2,500 of them, out of 44,892 different domains looked up. A big list is mostly insurance.

The lists

I use nine lists. The numbers above are from the lists I ran before these.

  1. HaGeZi Multi ULTIMATE: ads, tracking, telemetry and scams. Its most aggressive tier.
  2. HaGeZi TIF: malware, phishing and scam domains from threat intelligence feeds.
  3. Phishing Army extended: phishing, updated daily.
  4. StevenBlack unified: a long-running hosts list, updated daily.
  5. AdGuard DNS: AdGuard's DNS filter.
  6. Badware Hoster: hosting services abused for malware.
  7. DoH/VPN/Proxy Bypass: stops devices from going around Pi-hole. It also blocks VPN apps, so allowlist the ones you use.
  8. Dynamic DNS: often used by malware. Skip it if you use DuckDNS or similar.
  9. Spam TLDs: 128 top-level domains that are mostly abused, such as .bond and .loan.

To add them, use these links:

https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/ultimate.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/tif.txt
https://phishing.army/download/phishing_army_blocklist_extended.txt
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://v.firebog.net/hosts/AdguardDNS.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/hoster.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/doh-vpn-proxy-bypass.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/dyndns.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/spam-tlds-adblock.txt

If Ultimate breaks too much, swap it for pro.plus.txt from the same folder.

The nosiest box in the house

A watchdog for privacy is also a record of everything. Mine keeps 91 days of lookups from the devices in the house, with the full name of every site and app. That's a detailed picture of a family's habits.

What makes it acceptable to me: it stays on a box in my house, not with a company. Pi-hole also has privacy levels that hide domains, clients or both from the log, and a setting for how many days to keep, if you want it to see less.

Where it falls short

  • It can't block ads served from the same domain as the content, such as YouTube ads.
  • It only watches what asks it. My Mac skips it on purpose. Devices with hard-coded DNS, or apps with encrypted DNS built in, can skip it too. The bypass list and Pi-hole's built-in protection close most of that, not all.
  • It's one box. If the Pi goes down, the whole house loses the internet, as far as anyone can tell. A real backup means a second Pi-hole on a separate device, not a second address on the same one.
  • Upstream lookups aren't encrypted. What Pi-hole doesn't block, it sends to Google DNS in plain text.

One house, three months. Your lists may differ.

Ten years ago it was a fun experiment. Now it's the one box in the house I'd replace first.

Category
Tags