I recently set up network-wide ad blocking at home. I’m running AdGuard Home and it hands its lookups to Cloudflare’s service for added security. Two weeks ago I set up Cloudflare for this website. Since then, I learned I can use their privacy-focused DNS servers to handle my home’s DNS queries. I set up a self-hosted AdGuard server on a PC at home and placed upstream DNS lookups at Cloudflare. That’s it. Every device in the house now skips most ads and trackers, and browsing still feels fast.
First, What DNS Does
Every time you open a website or an app, your device has to turn a name like example.com into a numeric address it can actually connect to. That lookup is called DNS, the Domain Name System, and it works like the internet’s phone book. Ads and trackers need lookups too, because they load from their own domains. Phones and IoT devices make dozens of lightning-fast requests to unnecessary servers in the blink of an eye. That makes the lookup step a good place to stop them.
What Is AdGuard Home?
AdGuard Home is a free, open-source DNS filter you run on your own network. Your devices send their lookups to it instead of straight to the internet. It’s a self-hosted application that serves known tracking, telemetry, logging, advertising domains a non-working domain where it essentially drops the DNS query. Think of all your IoT devices, smart TVs, Alexas, Google Home, Ring Camera, Google cameras, Roku devices, your phone, application like Zoom are all sending telemetry data back to their home servers, see the image below. You can see AdGuard blocking my iPhone from sending data to fbs.smoot.apple[.]com. So on and so forth. If a name matches a list of known ad or tracker domains, AdGuard Home refuses to answer, so the ad never loads and the tracker never connects. If the name is fine, it passes the question along.


That “passing along” part matters. AdGuard Home doesn’t look up addresses itself. It’s a filter and forwarder, and it relies on an upstream resolver, an outside DNS service that does the real lookup and sends back the answer. AdGuard Home sits in front of that service and decides which questions are allowed through.
It runs quietly in the background and comes with a web dashboard. From there you can see which lookups were made, manage block lists, set rules per device, and turn on parental controls. I think of it as a personal DNS firewall for my home network.

What Is Cloudflare DNS?
Cloudflare DNS, known by its address 1.1.1.1, is a public resolver: a free service anyone can use as an upstream DNS resolver for their own network. It’s known for being fast. On privacy, Cloudflare commits to not selling your lookup data, deletes its query logs within 25 hours, and has an outside firm audit those promises. Cloudflare also has other DNS servers you can use to block phishing, malware and pornography. More on those in Cloudflare’s guide to its malware-blocking DNS.
Cloudflare also supports encrypted lookups through DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT). Normal DNS travels in plain text, so your internet provider can see every name you look up. With DoH or DoT, the lookup is wrapped in encryption on its way to Cloudflare.
How the Two Compare
Cloudflare DNS is a resolver. It answers lookups quickly and privately, but it doesn’t block anything.
AdGuard Home is a filter that sits in front of a resolver. It adds ad and tracker blocking, a lookup log, per-device rules, and parental controls, but it still needs an upstream resolver like Cloudflare to answer the lookups it allows.
Cloudflare alone gives you speed and privacy with no blocking. AdGuard Home can’t work alone, because it always forwards to some upstream resolver. Pairing it with Cloudflare gives you blocking plus a fast, privacy-focused resolver behind it.
How to Set Up AdGuard Home
I had my favorite AI assistant, Hermes, download the application directly from GitHub and set up AdGuard Home locally. To run a network-wide AdGuard Home, you will need to use this method.
AdGuard also sells paid apps for individual devices, with a free 14-day trial. I have not tried the paid versions.
My Home Setup, Visualized

Here’s how I set it up in three steps:
- Run AdGuard Home on an always-on machine. I’m using a laptop but any computer that stays powered on works. A Raspberry Pi is a popular low-cost choice.
- Give that machine a fixed local address. Your router will send every device’s lookups to this machine, so its address on your home network can’t change. Set a static IP on the machine, or create a DHCP reservation on your router so it always gets the same address.
- Point your router at AdGuard Home. Set your router’s DNS server to the AdGuard machine’s local address. The router then hands that address to every device on the network.
That last step comes with a real trade-off. Many guides say to add Cloudflare (1.1.1.1) as the router’s secondary DNS so it acts as a backup. In practice, most devices don’t treat the secondary as a backup. They often send lookups to both servers, or pick whichever answers first. Anything that goes to Cloudflare directly skips AdGuard Home, so some ads and trackers get through.
So you have a choice:
- AdGuard Home only. You get the best blocking. But if the hosting computer is off or AdGuard Home crashes, lookups stop working and the internet looks “down” for everyone until it’s back.
- My Set Up – AdGuard Home plus a public secondary. The internet keeps working when the computer is off, but some ads and trackers slip past the filter all the time, not just during outages. This method is using your AdGuard Home server as the primary on your router and Cloudflare’s IP as a secondary. Every time my PC restarted the IP address for AdGuard changed, so this way my secondary DNS falls back to Cloudflare and my devices can still reach the internet if my PC hosting AdGuard Home goes down.
- Two AdGuard Home instances. Run a second copy on another always-on device (a Raspberry Pi works well) and list both as the router’s DNS servers. You get the backup without the leak.
Once configured, every device on the network gets ad blocking without installing anything: smart TVs, phones, tablets and smart home gadgets. Because the filtering happens at the lookup step, it works no matter which browser or app is making the request.
Bottom Line: Why I Chose AdGuard Home
I wanted ad blocking across my whole network, not just in my browser. Browser extensions are convenient, but they can’t block ads inside apps, on smart TVs, or on connected gadgets. AdGuard Home covers all of those by filtering lookups for the entire house.
Cloudflare handles the part AdGuard Home doesn’t do, the actual lookups, and keeps that part fast and private. AdGuard Home’s block lists do the heavy lifting of spotting ads and trackers. Using Cloudflare’s encrypted endpoint as the upstream means my internet provider can’t read my lookups either.
The main trade-off is that self-hosting makes your DNS depend on one machine at home. A public secondary DNS on the router keeps things working when that machine is down, but it also lets some ads through every day. I’d rather be honest about that than call it a perfect fallback. If uptime matters more to you, a second AdGuard Home instance is the cleaner fix.
For anyone who cares about privacy and doesn’t want ads and trackers all over their network, this is one of the easiest and most effective setups you can run at home.
Best practice: Place all unnecessary IoT devices, such as smart TVs, gaming consoles, voice assistants and smart lights, on a dedicated VLAN. If that’s too advanced, you can put them on your guest Wi-Fi network to keep them separate. Just check that guest devices still use AdGuard Home, because some routers give the guest network its own DNS.
Want to see what attackers are up to right now? Check my Breach Intel Dashboard for the latest breaches and ransomware claims.
Want this set up for your home office or small business? I help small businesses with cybersecurity. Let’s talk.

Leave a Reply