Pi-hole is a DNS sinkhole that blocks ads and unwanted content for every device on your network without client-side software on each device.
Overview
Pi-hole protects devices from unwanted content by acting as a DNS sinkhole on your own hardware. You install it once on Linux hardware, a VM, a NAS, or in Docker, then point your network’s DNS at it so phones, TVs, and apps are filtered at the network level rather than only in browsers.
Blocking happens before ads and trackers download, which can reduce bandwidth use and speed up repeat lookups through DNS caching. It works for in-app ads and smart TVs where browser extensions cannot reach. IPv4 and IPv6 are both supported.
You can manage Pi-hole through a responsive web dashboard or the pihole command-line tool. The dashboard shows query logs, block statistics, and settings; the CLI covers allowlists, denylists, regex rules, debugging, and updates. A REST API mirrors web capabilities for scripting and home automation, with built-in API documentation and app passwords.
Optional built-in DHCP can assign Pi-hole as the DNS server for all clients when your router cannot. Group management assigns different block lists per device group. Community blocklists and allowlists can be subscribed and kept updated. Privacy modes, local DNS records, configuration backup via Teleporter, and pairing with VPN tools such as WireGuard are documented for use off the home network.
Key features
- DNS sinkhole ad and tracker blocking
- Web dashboard with query statistics
- Command-line administration via pihole
- REST API with interactive documentation
- Optional built-in DHCP server
- Per-client group management
- Allow, deny, and regex domain rules
- Long-term query log and filtering
Use cases
- Whole-home ad blocking without per-device plugins
- Filtering smart TV and mobile in-app ads
- Monitoring DNS activity on your network
- Self-hosted DNS with custom block lists