DNS Sinkhole on Raspberry Pi 4

DNS Sinkhole

Overview

I run a DNS sinkhole on a Raspberry Pi 4 that blocks ads, trackers, and known malicious domains for every device on my network. The Pi sits on my LAN and is also reachable over my Tailscale virtual VPN, so devices get the same filtering whether they're on my home network or out on the road.

Setup

I flashed Raspberry Pi OS Lite (headless, no desktop environment) to a microSD card and did the entire setup remotely over SSH from my main machine. Key steps included:

Result

Every device on my home network, and every device I connect to my tailnet from anywhere, resolves DNS through the sinkhole. This blocks the large majority of ad and tracking requests before they ever leave the network, and flags/blocks lookups to domains known to serve malware or run phishing campaigns.

Back to Projects