A Pi-hole is a small piece of software, usually run on a Raspberry Pi or another always-on computer, that works as a DNS server for your whole home network. Its most common job is blocking ads, trackers and malware domains for every device on that network at once, without installing anything on each phone, tablet, TV or computer. It does not remove ads from the page itself; it stops the device from ever finding the ad server, so the ad simply fails to load.
Where the Name Comes From
The name is a compound of two ideas: "Pi" from the Raspberry Pi, the cheap single-board computer the project was originally designed for, and "hole" from "black hole," the networking idea of sending unwanted traffic somewhere it disappears. When Pi-hole blocks a domain, it returns an empty or bogus answer instead of the real address, so the request effectively falls into a hole.
It is written as two separate words with a capital P, or often lowercase in casual use as "pi-hole" or "pihole." In practice you will see all three spellings, even in the project's own documentation and community posts. It is a product name, not a word in the dictionary, so there is no single correct spelling enforced anywhere. The official site, discussion forum and software repositories most often use "Pi-hole."
How It Fits Into Your Home Network
Every time a device wants to load a website, an app or an ad, it first asks a DNS server to translate a name like example.com into a numeric address. Normally your router or your internet provider answers that question. Pi-hole takes over that role for your network, checking each request against blocklists before answering.
There are two common ways to route requests to it:
- Router-level DNS: you set your router's DHCP settings to hand out the Pi-hole's address as the DNS server to every device. This is the cleanest setup because everything joins automatically, but not every router lets you change the DNS server it advertises.
- Per-device DNS: you change the DNS server in each device's network settings by hand. This takes more work and is fragile, but it works when the router has no usable setting. On phones and computers the setting lives in the network configuration, and on some devices you cannot change it at all.
A secondary option is to use Pi-hole as a DHCP server itself and turn off the router's DHCP function. That gives you more control over which device gets which address, but it is more work to configure and a misconfiguration can take the whole network offline, so only do it if you are comfortable recovering from that. Labels and menus for all of these settings differ by router brand, model and firmware version.
What It Blocks and What It Does Not
Pi-hole works at the domain level, and that distinction matters more than any other detail about it.
What it handles well: ads and trackers served from separate, known advertising domains; telemetry from smart TVs and apps that phone home to a fixed server; malware and phishing domains listed on public blocklists. On a typical home network this noticeably speeds up page loads and reduces background chatter from connected devices.
What it does not do:
- It does not strip ads that are served from the same domain as the content itself, such as sponsored posts or first-party ads. Those requests look like normal content to a DNS filter.
- It does not work when you are away from home unless you route your traffic back through your network with a VPN. Without that, your phone uses whatever DNS server the mobile network or the remote Wi-Fi gives it.
- It does not decrypt, inspect or filter the contents of traffic. It only decides whether a name resolves.
- It does not stop ads in apps that hard-code IP addresses instead of using domain names, because there is no lookup to block.
- It does very little about YouTube ads, because those come from the same servers as the video. Pi-hole cannot separate them without breaking the video.
Blocklists and How Blocking Actually Works
Pi-hole ships with no opinion about what to block. You choose blocklists, which are plain text files listing domains, formatted as "address per line" or in hosts-file format. The project and community maintain curated lists grouped by purpose: general advertising, tracking, malware, and category lists for things like social media or gambling.
The usual loop is:
- Add a blocklist URL in the Pi-hole admin interface under the group management or lists section.
- Update the lists so Pi-hole downloads them and builds its database.
- Browse normally and watch the query log to see what is being blocked.
- When something legitimate breaks, find the blocked domain in the log and add it to the allow list, called the whitelist in older versions and "allow" in newer ones.
Bigger is not automatically better. Adding dozens of overlapping lists produces blocks you did not intend, and the more aggressive lists start breaking store pages, streaming services, app logins and even some software updates. Start with one or two well-known lists and add more only when you have a reason.
Common Problems and How to Troubleshoot Them
Most Pi-hole complaints fall into a few predictable patterns. Work through them simplest first.
- No internet on any device: the Pi-hole machine is off, has lost its network connection, or changed address. If devices are configured to use it as their only DNS server, they lose name resolution when it disappears. Check that it is powered, reachable on the network, and still on the address your router hands out. Giving the Pi-hole a fixed address in the router's DHCP reservation settings prevents the most common version of this failure.
- One site or app is broken: almost always an over-block. Open the query log, reproduce the problem, find the blocked domain, and allow it. Look at the domain carefully: tracking and advertising domains are often named to look like the real site.
- Ads still appear: the device is not using the Pi-hole, usually because it has its own DNS set or is using a secure DNS feature that bypasses the network setting. Check the query log for that device's address; if you see no queries from it, it is not using Pi-hole at all.
- Slow browsing: blocklists that are too large, or a Pi-hole running on very slow storage, can delay lookups. Trimming lists usually helps.
After any serious change, the safe recovery move is to point your router back at automatic DNS temporarily, confirm the internet works, then fix the Pi-hole before re-enabling it.
How Pi-hole Compares to Other Options
The closest comparison is a browser extension such as an ad blocker. An extension filters inside one browser on one device and can hide ads in the page, including first-party ones. Pi-hole filters for every device on the network, including phones, smart TVs and devices that cannot run extensions at all, but it cannot remove ads that share a domain with content. Many people run both, and they complement each other rather than compete.
A second comparison is your router's built-in ad-blocking or content-filtering feature. Some routers offer this, and it is easier to set up, but it is usually limited to the vendor's own lists with few options to see what was blocked or to allow exceptions. Pi-hole gives you the query log, per-device visibility and full control of the lists, at the cost of running and maintaining another device.
It is also different from a full firewall or VPN. Pi-hole is a filter for name lookups, not a security appliance, and it should not be treated as a replacement for keeping devices updated and using strong passwords.
Frequently Asked Questions
Do I need a Raspberry Pi to run Pi-hole?
No. It runs on many Linux systems, in a container, and on other small computers. A Raspberry Pi is simply the most common and cheapest way to leave it running all the time. What matters is that the machine stays powered on and reachable, because DNS stops working for the network when it does not.
Does Pi-hole slow down my internet?
Usually not. Local DNS lookups are fast, and fewer ad requests can make pages feel quicker. Problems come from overly large blocklists or an unreliable host machine, not from the filtering itself.
Will it block YouTube ads?
Generally no. YouTube serves ads from the same domains as the video, so there is nothing at the DNS level to block without breaking playback. Pi-hole is not the right tool for that job.
Does it work when I am away from home?
Only if you route your device's traffic back to your home network. Otherwise your phone uses the DNS server provided by whatever network it is on, and Pi-hole never sees the request.
Can I break my internet by setting it up?
Yes, temporarily. If every device uses Pi-hole as its only DNS server and Pi-hole goes down, nothing resolves until you restore it or change the network setting back. Keep a note of how to undo the change, and set a fixed address for the Pi-hole.
Is it a replacement for antivirus software?
No. Blocking known malicious domains reduces exposure, but it is one layer only. Keep devices updated and use the security tools built into your operating systems.