Pi-hole: free open source ad blocker for your whole home network
Free, open source DNS ad blocker you run on a Raspberry Pi, old PC, VM or Docker. Blocks ads and trackers for every device on your network, with a dashboard and query log.
Verified offer specifications
- Price
- Free, optional donations
- License
- European Union Public Licence (EUPL) 1.2
- Current version
- Core v6.6 and FTL v6.9 (November 11, 2026)
- How it blocks
- DNS sinkhole for the whole network, no apps on each device
- Supported systems
- Alpine, Armbian, Debian, CentOS Stream, Fedora, Raspberry Pi OS, Ubuntu
- Docker
- Official pihole/pihole image
- Prebuilt architectures
- x86_64 (amd64, i686), armv6, armv7, armv8 (aarch64), riscv64
- Minimum hardware
- 2 GB free disk (4 GB recommended), 512 MB RAM
- Network needs
- Static IP or DHCP reservation, port 53 free
- Web interface
- Built in, ports 80 and 443 (falls back to 8080 and 8443)
- Optional extras
- DHCP server with IPv6, NTP server, REST API
- Privacy levels
- 4 levels, from show everything to anonymous mode
- Remote use
- Via your own VPN such as WireGuard
- Support
- Community forum, Reddit and GitHub
Pi-hole is a free, open source ad blocker that works for your whole home network instead of one browser. You install it once on a small Linux machine, such as a Raspberry Pi, an old PC, a virtual machine or a NAS, and point your network's DNS at it. From then on, every phone, laptop, smart TV and games console on that network gets ads and trackers blocked without installing anything on the device itself. There is no account, no subscription and no paid tier. The project is run by volunteers and funded by donations.
The current release is Pi-hole Core v6.6, published on November 11, 2026, alongside FTL v6.9, the DNS engine at the heart of Pi-hole. Both releases fix several high severity local privilege issues, and v6.5 in October fixed others, so it is worth updating an existing install with pihole -up.
How it works, in plain terms
Every time a device loads a page or an app, it first asks a DNS server to turn a name like an ad network's domain into an IP address. Pi-hole becomes that DNS server for your network. It checks each request against your blocklists. If the domain is on a list, Pi-hole answers with nothing useful, so the ad or tracker never downloads. If it is not, Pi-hole passes the request on to an upstream DNS provider and caches the answer, which makes repeat lookups almost instant.
Because it works at the network level, Pi-hole can block ads in places a browser extension cannot reach, such as mobile apps and smart TVs. The project says pages load faster and use less bandwidth because blocked content is never fetched. The flip side is that Pi-hole works by domain name. It cannot strip an ad out of a page when the ad comes from the same domain as the content you want.
What you get
- A web dashboard. It shows total and blocked queries, activity over time for each device, query types, upstream servers and your most requested and most blocked domains. Since version 6, the web server is built into Pi-hole, so there is nothing extra to install.
- Blocklists and allowlists. You can subscribe to community blocklists that update automatically, allow or deny single domains, or match whole families of domains with regular expressions.
- Group management. Put devices into groups and give each group its own lists, for example stricter filtering on a child's tablet and lighter filtering on a work laptop.
- A query log. See every domain requested on your network, which device asked and what Pi-hole did. Queries go into a long term database you can search by time range, and you can allow or deny a domain with one click.
- An optional DHCP server. If your router cannot change its DNS setting, Pi-hole can hand out IP addresses itself, with optional IPv6 support.
- A REST API. Everything in the dashboard is available through the API, with documentation served by your own Pi-hole at
http://pi.hole/api/docs. App passwords let scripts and home automation tools connect. - Privacy levels. Four levels control how much is recorded, from showing everything (level 0) to anonymous mode (level 3), which turns off the query log, client statistics and long term logging.
- Teleporter. Back up and restore your whole configuration as one file.
What you need
The official requirements are modest:
- Storage and memory: at least 2 GB of free space (4 GB recommended) and 512 MB of RAM.
- Operating system: an actively maintained version of Alpine, Armbian, Debian, CentOS Stream, Fedora, Raspberry Pi OS or Ubuntu. Other variants may work but are not tested.
- Processor: the FTL engine is prebuilt for x86_64 (amd64 and i686), armv6, armv7, armv8 (aarch64) and riscv64. Other architectures need FTL built from source.
- A static IP address for the Pi-hole machine. A DHCP reservation on your router is fine.
- Free ports: 53 for DNS, plus 80 and 443 for the web interface. If another web server already uses 80 or 443, Pi-hole tries 8080 and 8443 instead. DHCP and NTP need extra ports only if you turn them on.
You do not need a Raspberry Pi. The project says any hardware running a supported system will do, and an official Docker image (pihole/pihole) is available if you already run containers.
How to set it up
- Pick a machine that stays on, give it a static IP address and install a supported Linux system.
- Run the installer:
curl -sSL https://install.pi-hole.net | bash. If you would rather read the script first, the docs show how to clone the repository or download the script and run it withsudo bash basic-install.sh. Docker users can start from the compose file in the docs. - Answer the installer's questions. The docs say the whole process takes less than ten minutes, and at the end it gives you the address of your new web interface.
- In your router's DHCP settings, set Pi-hole's IP address as the DNS server, so every device picks it up automatically. If the router will not allow that, turn off its DHCP and use Pi-hole's built-in DHCP server, or set the DNS server on each device by hand.
- Open the dashboard, browse a few sites and check that queries appear and some are blocked.
Note that the Pi-hole machine itself does not use Pi-hole for DNS after install unless you configure it to.
Using it away from home
Pi-hole only protects devices that send their DNS queries to it. On mobile data or public Wi-Fi your phone uses another resolver. The project's answer is to pair Pi-hole with a VPN such as WireGuard, and the docs include a walk-through for running a WireGuard server on the same machine. The docs also warn against exposing Pi-hole directly to the internet, since an open DNS resolver can be abused in DNS amplification attacks, so use the VPN route instead of opening port 53.
Things to know before you start
- You maintain it. Updates are one command (
pihole -up), but you should read the release notes for Core, FTL and Web before major upgrades. - If Pi-hole goes down, DNS goes down. Devices that rely on it cannot resolve names until it is back. Keep a way to switch your router back to another DNS server.
- Some sites may break. Aggressive blocklists can block domains that a site or app needs. The query log and allowlist are how you fix that.
- Chrome makes odd random queries. The FAQ explains that the short random domains in your log come from Chrome checking for DNS hijacking. They are harmless.
- Support is community based, through the Discourse forum, Reddit and GitHub.
License and cost
Pi-hole Core is licensed under the European Union Public Licence (EUPL) 1.2, and its code is on GitHub, where the main repository has over 62,000 stars. It costs nothing to use. The team says volunteer developers cover many running costs out of pocket and asks for optional donations through PayPal, Stripe, crypto or Patreon.
Who it suits
Pi-hole is a good fit if you have a spare low power machine, want fewer ads and trackers on devices you cannot install extensions on, and are comfortable changing a router setting. If you also want to see when your Pi-hole or other home services go down, Uptime Kuma runs well on the same kind of box. For privacy on the go without running your own server, Proton VPN Free is a simpler option, and VeraCrypt covers encrypting your files. You can browse more free tools in our privacy and antivirus category.
Things to know
- You need a machine that stays on, plus a static IP address for it.
- It only filters devices that use it for DNS. Away from home you need your own VPN, such as WireGuard.
- It blocks by domain name, so it cannot remove ads served from the same domain as the content.
- If the Pi-hole machine goes down, devices that rely on it lose DNS until it is back.
- Strict blocklists can break some sites or apps until you allow the needed domains.
- Do not expose it directly to the internet; an open resolver can be abused.
- Help comes from community forums and documentation, not a paid support desk.
Requirements
- An actively maintained Alpine, Armbian, Debian, CentOS Stream, Fedora, Raspberry Pi OS or Ubuntu system, or Docker.
- At least 2 GB of free disk space (4 GB recommended) and 512 MB of RAM.
- An x86_64, armv6, armv7, armv8 or riscv64 processor for the prebuilt FTL engine.
- A static IP address or DHCP reservation, and port 53 free for DNS.
- Access to your router's DHCP or DNS settings, or willingness to set DNS on each device.
How to set it up
- Prepare an always-on machine with a supported Linux system and a static IP address.
- Run the official installer (curl -sSL https://install.pi-hole.net | bash), or download and read the script first, or use the Docker compose file.
- Follow the installer prompts and note the web interface address it shows at the end.
- Set Pi-hole's IP address as the DNS server in your router's DHCP settings, or turn on Pi-hole's own DHCP server.
- Open the dashboard and check that queries from your devices appear and some are blocked.
Common questions
Is Pi-hole really free?
Yes. It is open source under the EUPL 1.2 and there is no paid edition. The team asks for optional donations to cover running costs.
Do I need a Raspberry Pi?
No. Any hardware that runs a supported Linux system will do, including an old PC, a virtual machine or a NAS. There is also an official Docker image.
Will it block ads on my phone outside the house?
Only if your phone sends DNS through your Pi-hole. The project suggests running a VPN such as WireGuard on the same machine and connecting to it when you are away.
Can it block ads inside apps and on smart TVs?
Often, yes. Because it works at the network level, it blocks ad domains for any device that uses it as DNS. It cannot block ads that come from the same domain as the content.
How do I update it?
Run pihole -up on a normal install, or pull the new image for Docker. The docs recommend reading the release notes for Core, FTL and Web first.