Skip to content

Pi-hole

Network-wide ad blocker running as a DNS sinkhole on your own Linux hardware

Copyleft (OSI) · EUPL-1.2
  • Self-hosted

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

62,202

Last commit

12 days ago

Nov 2026

Repository age

12 years

since Jun 2014

Latest version

v6.6

Nov 2026

Contributors

–

11 active in 90 days

Releases

7

last 12 months

Language

Shell

Pi-hole is a DNS sinkhole. Devices on your network ask it for domain names, and it refuses to resolve those on its blocklists. Because blocking happens at the DNS level, you install nothing on phones, TVs or laptops.

It installs on Linux with a guided installer, or you can use the official Docker images. After install, you point your router's DHCP settings at Pi-hole so every client uses it for DNS. If your router cannot do that, Pi-hole has a built-in DHCP server. It caches DNS queries, handles IPv4 and IPv6, and has a web dashboard and a command-line interface.

The core is written in Shell and licensed under EUPL-1.2. It runs on small hardware such as a Raspberry Pi and can scale to very large query volumes on server-grade machines. It is a self-hosted alternative to commercial DNS filtering services and ad-blocking subscriptions.

Who it's for

Home network owners

One install blocks ads on smart TVs and mobile apps where browser extensions cannot reach.

Skip if: You only need blocking in one browser, where an extension is simpler.

Raspberry Pi and homelab hobbyists

It runs on minimal hardware and ships a dashboard to view queries.

Skip if: You do not want to run an always-on device on your network.

Small office admins

Router-level DNS or the built-in DHCP server covers every device without client software.

Skip if: You need per-user policies and reporting beyond DNS blocking.

The problem it solves

Ads and trackers load in apps, smart TVs and devices where you cannot install a blocker. Pi-hole filters them for the whole network at the DNS level.

Strengths

  • No client software needed; works for every device using it as DNS
  • Blocks in non-browser places such as mobile apps and smart TVs
  • Optional built-in DHCP server
  • Web dashboard and command-line interface
  • Active project with 62,000+ stars and 7 releases last year

Trade-offs

  • DNS blocking cannot remove ads served from the same domain as content
  • Needs a router change or DHCP setup to cover all devices
  • If the Pi-hole host goes down, DNS for the network can fail
  • Linux only for the installer; other systems use Docker

Self-host Pi-hole

Self-hostable
Yes

Quick start

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

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Pi-hole free?

Yes. It is open source under EUPL-1.2 and funded by donations.

Do I need to install software on each device?

No. Point your router's DHCP clients, or each device, at Pi-hole as DNS server.

Does it support Docker?

Yes, official Docker images are available in a separate repository.

Can it act as a DHCP server?

Yes, optionally, if your router cannot set a DNS server. Disable DHCP on the router first.

Similar tools in Tunnels, VPNs and networking

tsdproxy

Tunnels, VPNs and networking

Reverse proxy that puts Docker containers on your Tailscale network with one label

1.7k 85 2 months ago Active MIT

blocky

Tunnels, VPNs and networking

DNS proxy and ad blocker for home networks, with per-client rules and DoH support

7.1k 325 today Thriving Apache-2.0

pgrok

Tunnels, VPNs and networking

Self-hosted SSH-based tunnel service with SSO and stable subdomains for teams

3.7k 134 yesterday Active MIT

rathole

Tunnels, VPNs and networking

Rust reverse proxy that exposes services behind NAT through a server with a public IP

14k 852 3 months ago Dormant Apache-2.0

Technitium DNS Server

Tunnels, VPNs and networking

Self-hosted authoritative and recursive DNS server with ad blocking and encrypted DNS

10k 832 yesterday Thriving GPL-3.0

wstunnel

Tunnels, VPNs and networking

Single Rust binary that tunnels TCP, UDP and SOCKS5 over WebSocket or HTTP/2

7.2k 589 35 days ago Active BSD-3-Clause