Pi-hole
Network-wide ad and tracker blocker that acts as a DNS sinkhole, filtering requests for every device on a home or office network.
Pi-hole is free software that blocks advertising, tracking and malicious domains for an entire network by acting as its DNS server. When a device asks to look up a domain on a blocklist, Pi-hole answers with a null address instead of the real one, so the content never loads. Because it works at the network level, it protects devices that cannot run browser extensions, such as smart TVs, phones and game consoles. It was designed to run on a Raspberry Pi but works on most Linux systems and in containers.
Pi-hole was created by Jacob Salmela and is maintained by a small team with community contributors. Its core is FTL, a DNS and DHCP engine derived from the dnsmasq project, paired with a web dashboard that shows query statistics, top blocked domains and per-device activity. Administrators subscribe to community-maintained blocklists, add allow and deny rules, and can forward permitted queries to an upstream resolver of their choice, including one that supports encrypted DNS.
Pi-hole is a practical example of a DNS sinkhole, the same technique security teams use to cut malware off from its command servers. It reduces tracking and bandwidth on a home network and gives visibility into what connected devices contact. Its limits are inherent to DNS blocking: ads served from the same domains as wanted content cannot be separated, and apps that use their own encrypted DNS or hard-coded resolvers bypass it. It is a common first project in a homelab.
Key points
- Pi-hole blocks ads and trackers for every device on a network by answering DNS queries.
- It protects devices such as smart TVs that cannot run browser ad blockers.
- Its dashboard reveals which domains connected devices try to reach.
- Ads served from the same domains as wanted content cannot be blocked by DNS filtering.
In their own words
Instead of browser plugins or other software on each computer, install Pi-hole in one place and your entire network is protected.
Related entries
DNS Sinkhole
DNS server configured to return false or blocked answers for selected domains, used to stop malware communication or block ads and trackers.
Domain Name System
Hierarchical, distributed naming system that translates human-readable domain names into the numeric IP addresses computers use to find each other.
Raspberry Pi
Series of small, low-cost single-board computers from the United Kingdom, created to teach computing and widely used by makers and hobbyists.
Encrypted DNS
Methods such as DNS over HTTPS and DNS over TLS that encrypt domain name lookups, hiding them from eavesdroppers on the network path.
Tracking Cookie
Small file stored by a web browser that lets advertisers and analytics companies recognize the same user across websites to build behavioral profiles.
Homelab
Personal computing environment used to experiment with servers, networking, virtualization and other technologies for learning, testing or self-hosting.
Self-Hosting
Practice of running one's own servers and software for services such as email, file storage or media instead of relying on third-party platforms.
Router
Networking device that forwards data packets between computer networks, choosing paths based on destination addresses and routing tables.