Pi-hole is free software that blocks ads and unwanted websites for every device on your home network.
This guide is for anyone who wants fewer ads and trackers at home, including on smart TVs and phone apps. It explains what Pi-hole does well, where it falls short and how to run it safely.
This is an independent guide from NHI Mgmt Group, based on Pi-hole's public documentation as of December 2026. It is not sponsored or reviewed by the Pi-hole project. Features change, so confirm settings against the current documentation.
In short
- Pi-hole sits in the middle when your devices look up website names, and refuses names on its blocklists.
- It works for the whole network at once, with no app to install on each device.
- Apps and browsers that use their own encrypted lookups, or connect by number, can go round it.
- Keep it on your home network only, keep it updated, and keep its records private.
What you will learn
- Explain how Pi-hole blocks ads in plain words.
- Describe why it can protect devices that cannot run an ad blocker.
- Spot the ways devices can skip Pi-hole.
- Check the basic steps that keep it safe and private.
- Internet address book (DNS)
- the system that turns a website name into the number a device needs to connect.
- Block list (blocklist)
- a list of website names that should not be looked up.
- Name lookup
- the moment a device asks, "where is this website?"
What is Pi-hole?
Think of an address book where someone has crossed out a few entries. When you look up a crossed-out name, you find no address, so you cannot send anything there. Pi-hole crosses out entries in your network's address book.
That address book is the DNS, short for Domain Name System. Before a device can reach a website, it asks a DNS server for the site's number. Pi-hole calls itself a DNS sinkhole. It filters unwanted content for every device on the network, with no software to install on each one [1].
It runs on your own Linux computer, such as a small Raspberry Pi, though a Raspberry Pi is not required [1][2]. It is free and open source, meaning anyone can read its code [1].
Where the comparison stops working: you can always find an address another way, such as asking a friend. Devices can too. If an app asks a different address book, or already knows the number, Pi-hole is not asked.
Why does it matter?
Ads and trackers follow people across apps, TVs and websites. Pi-hole can block them in places a browser ad blocker cannot reach, such as mobile apps and smart TVs [1]. It is one useful layer, not a full security tool.
If you have a busy family network
What could happen: the smart TV and family tablets load ads and trackers you never agreed to.
Check this: point the router's DNS setting at Pi-hole, so every device uses it.
If you share a home with others
What could happen: Pi-hole's records show which sites each device looked up, and someone reads them.
Check this: agree who can open the dashboard, and protect it with a strong password.
If you are learning IT
What could happen: you expose Pi-hole to the internet, and strangers try to use it.
Check this: keep it answering home devices only, which is its default.
What does it look like?
Here is a made-up page from a Pi-hole style log. It shows what the dashboard tells you.
Example only. All values are made up.
Time Device Name looked up Result 09:00 living-room-tv ads.example.com Blocked (1) 09:00 living-room-tv video.example.com Allowed (2) 09:01 phone-0000 tracker.example.invalid Blocked (3) 09:02 laptop-0000 news.example.com Allowed 09:05 camera-0000 update.example.com Allowed (4)
- The TV asked for an ad server. It was on a blocklist.
- The video service itself was allowed, so the show still plays.
- A tracker inside a phone app was blocked.
- The camera's update check was allowed. In a real screen, this line would show your device's name and the site it asked for.
Why this is risky: a log like this tells a story about who looked at what, and at what time of day. Pi-hole logs lookups by default [3].
The safer way: limit who can see the dashboard. Tell people in the home that Pi-hole is in use.
How does it work?
Pi-hole works at the name lookup step, before a connection starts.
- Devices are pointed at Pi-hole. The docs prefer setting your router so devices use Pi-hole for DNS. If the router cannot do that, Pi-hole can hand out network settings itself [4].
- A device asks for a name. For example, a TV asks where an ad server is.
- Pi-hole checks its lists. If the name is blocked, by default it answers with an address that leads nowhere [3].
- Allowed names are passed on. Pi-hole asks another DNS server and passes the answer back. It also remembers recent answers, which can speed things up [1].
- It stays local. By default, Pi-hole only answers devices on networks it is connected to. That stops strangers on the internet from misusing it [3].

Where encrypted DNS fits
Some browsers and devices can send lookups in encrypted form to a DNS server of their choice. That is called encrypted DNS. It protects privacy, but it can skip Pi-hole.
Firefox checks a special test name to decide whether to turn on its own encrypted DNS by default. Networks can answer that test to ask Firefox not to [5]. Pi-hole answers it that way by default [3]. Pi-hole also, by default, blocks the names Apple devices use for iCloud Private Relay, so they cannot go round it [3].
Mozilla says the test does not apply if a user switched on encrypted DNS themselves [5]. Apps can make the same choice. So Pi-hole is a helpful filter, not a wall.
A worked example
Idris Osei lives with his partner and two adult housemates. The smart TV shows ads on every menu, and the family tablets are full of trackers. He decides to try Pi-hole.
He installs it on a small spare computer and gives it a fixed address, as the docs require [2]. Then he changes one setting on the router, so all devices use Pi-hole for name lookups.
The next day, the TV menus are calmer. The dashboard shows thousands of blocked lookups from the TV and the tablets.
One problem appears. His partner cannot open a shopping link from an email. Idris finds the blocked name in the log and adds it to the allow list. He makes a note of it, so he can review it later.
He also notices that the dashboard shows which sites each device looked up. He talks to the family about it, sets a strong dashboard password and agrees that he will not browse the log for fun.
A month later, his son's laptop still shows ads in one browser. Idris checks and finds that encrypted DNS was switched on in that browser by hand. They agree to leave it, since the laptop also has its own ad blocker.
Idris puts a monthly reminder in his calendar to update Pi-hole and the computer it runs on.
Myths and mistakes
| What people think | What is true |
|---|---|
| Pi-hole blocks every ad. | It blocks by name. If an ad comes from the same name as the content you want, blocking one would block both. |
| Pi-hole replaces antivirus. | It can block known bad names on your lists. It does not scan files or clean an infected device. |
| I need a Raspberry Pi to run it. | The docs say any hardware running a supported system will do.[2] |
| Opening it to the internet lets me use it everywhere. | By default it answers local devices only. That keeps it from being misused by strangers.[3] Use a VPN to reach home instead. |
| The logs are harmless. | They show which sites each device looked up. Treat them as private. |
What can I do this week?
- Find the DNS setting on your router, so you know where Pi-hole would go.
- List devices that cannot run an ad blocker, such as TVs and games consoles.
- If you already run Pi-hole, check it is up to date and answers local devices only.
- Set a strong password for the dashboard and decide who may see it.
- Keep a short note of every name you allow, and why.
Checklist
- Pi-hole has a fixed address on my network.
- The router tells devices to use Pi-hole for name lookups.
- Pi-hole answers devices on my home network only.
- The dashboard is protected and only trusted people can see it.
- People in the home know Pi-hole is in use and what it records.
- Pi-hole and the computer it runs on are kept up to date.
- I know that some apps and browsers can go round it.
Common questions
What hardware do I need?
Very little. The docs list at least 512 MB of memory and 2 GB of free storage, with 4 GB recommended. A Raspberry Pi works, but any computer running a supported Linux system will do. It needs a fixed network address.[2]
What happens if Pi-hole stops working?
Devices that rely on it may not be able to look up websites, so the internet seems down. The docs warn that the Pi-hole computer itself can lose name lookups if Pi-hole fails. Keep a note of how to switch your router back.[4]
Does Pi-hole work with encrypted DNS?
Partly. By default it signals Firefox not to switch on its own encrypted DNS, and blocks iCloud Private Relay names. Devices or browsers set to use encrypted DNS by hand can still go round it.[3][5]
Can Pi-hole protect me from harmful websites?
It can block names that appear on the lists you choose, including known bad ones. It does not check the content of pages or files. Use it alongside updates, browser protection and care with links.
Where next?
Ready for the detail? Read the practitioner guide: DNS Filtering vs Secure Web Gateway. It goes further into what name-based blocking can and cannot catch, the ways traffic goes round it, and when a business needs more.
Also useful:
- How DNS Works for Beginners
- Encrypted DNS for Beginners
- DNS Security for Beginners
- Private DNS on Phones and Home Networks Guide
Related NHI Mgmt Group resources: DNS Security and Protective DNS Buyer's Guide, Home Router Security for Beginners and Smart Home Security for Beginners.
Key terms
- Pi-hole
- Free software that blocks lookups for chosen website names across a whole network.
- DNS sinkhole
- A DNS server that answers lookups for unwanted names with an address that leads nowhere.
- DNS resolver
- The server that turns website names into the numbers devices need to connect.
- Known-bad blocklist
- A list of names or addresses already linked to harmful activity.
- Encrypted DNS
- Name lookups sent in protected form, which helps privacy but can skip local filters.
- Open resolver
- A DNS server that answers anyone on the internet, which makes it easy to misuse.
Sources and further reading
- Pi-hole, "Overview of Pi-hole", Pi-hole documentation. https://docs.pi-hole.net/ (accessed 1 Dec 2026).
- Pi-hole, "Prerequisites", Pi-hole documentation. https://docs.pi-hole.net/main/prerequisites/ (accessed 1 Dec 2026).
- Pi-hole, "Configuration file" (FTLDNS settings), Pi-hole documentation. https://docs.pi-hole.net/ftldns/configfile/ (accessed 1 Dec 2026).
- Pi-hole, "Post-Install", Pi-hole documentation. https://docs.pi-hole.net/main/post-install/ (accessed 1 Dec 2026).
- Mozilla, "Canary domain - use-application-dns.net", Mozilla Support. https://support.mozilla.org/en-US/kb/canary-domain-use-application-dnsnet (accessed 1 Dec 2026).