How I Self hosted an Ad blocked at home with Adguard Server and Yunohost.
Ads followed me from browser to browser. Each browser needed its own extension, each phone needed another setting, and none of it covered the television, the guest laptop or the tablet in the kitchen. I had already brought passwords, search and translation onto my own YunoHost server, so leaving ad blocking with somebody else’s extension list started to feel inconsistent. A few years ago I installed AdGuard Home on the same box, pointed my home router’s DNS at it, and gave it a domain I control. This is what changed, what I kept, and why I still edit the blocklists by hand.
I am not writing as somebody who deleted every cloud service, and DNS filtering does not make you anonymous. This is one small job — stopping known trackers before they reach the network — moved from a browser vendor’s store to a server I can inspect. It sits next to the Vaultwarden setup and the other open-source alternatives I moved to.

In this article
Why I moved it off the browser
Browser extensions are fine until you count them. One for Firefox, one for Chromium, one for the phone, none for the smart television, and nothing at all for the laptop a guest brings over. Every extension is another thing to synchronise, another permission to trust, and another place where a setting can quietly change.
The cloud DNS filters looked like the easy answer. They are easy. But I would be handing the same company both my browsing pattern and the rules that decide what gets blocked. I had already spent time moving secrets and search away from other people’s defaults. Ad blocking was the last everyday thing still living in somebody else’s interface.
A filter list is a policy. I wanted that policy on my machine, not in a browser store.
Installing it on YunoHost
I installed the AdGuard Home app through YunoHost, on the same server that already runs Vaultwarden and the rest of my small services. The app runs as a system service and listens on the server’s address on my local network. I did not compile anything by hand and I did not add a reverse proxy rule myself; YunoHost handled the packaging and the web entry point.
That mattered more to me than the install itself. I wanted this to be boring. A DNS resolver is the kind of thing that should not be a weekend experiment, because every device starts depending on it the moment it works.
One setting in the router, one domain for the road
At home the change was small. In the router’s DHCP settings I replaced the default DNS server with the server’s address on the local network. After that, every device that asks the router for DNS gets the filtered resolver without installing anything. Phones, laptops, the television and guests all use the same rules.
I also gave the service a dedicated subdomain on a domain I control. The web interface sits behind the same YunoHost login as my other apps, so I never publish the admin address in an article. Only the DNS-over-HTTPS path is meant to be reachable from outside. That lets my phone use the same filtering on mobile data, in a hotel, or in somebody else’s house, without sending traffic through my home network.
DNS server on LAN: <server-lan-address>
Router DNS setting: <server-lan-address>
Private web interface: https://<your-private-domain>/ (YunoHost SSO)
DNS-over-HTTPS path: https://<your-private-domain>/dns-queryCode language: HTML, XML (xml)
That split is deliberate. I want the dashboard private and the DNS endpoint usable. I am not going to print the real hostname here; a private address stays private even when the setup is worth writing about.
Pi-hole was strong, but it asked for more assembly
I tried Pi-hole before this. It is good software and I still respect it. It does the core job well, and the community around it is large. For me it felt like a strong engine that expected me to put more of the car together.
What I wanted was encrypted upstream DNS built in, a query log I could read quickly, and filter management in one screen. AdGuard Home gave me those things in one place. Pi-hole can reach the same result, but I found myself adding pieces around it. The interface mattered too. I could glance at AdGuard Home and see what was happening; with Pi-hole I felt I had to work at the dashboard.
This is not a claim that one project is better for everybody. It is why I stayed with the one that fitted the rest of my stack.
Blocklists are not set and forget
The first real mistake was adding a long list because it was long. A shop I use stopped loading. The filter was doing exactly what I had asked, just not what I wanted. Since then I add lists in small batches and watch the query log for a day before I add another.
When a site breaks, I look at the log before I blame the site. Usually the answer is one allowlist entry for a domain the page genuinely needs. Sometimes the answer is removing a list that was too broad for my habits. A bigger list is not a better list if it costs you the sites you actually use.
Blocking is easy. Deciding what not to block is the part that takes attention.
What I did not move
I did not stop using browser extensions everywhere. On one machine I still keep a small extension for page-level elements that DNS cannot see. I did not replace a VPN with this, and I did not stop using encrypted DNS upstream; the resolver still has to ask somebody else for names. I also did not make the setup highly available. If this server is down, name resolution at home is down with it. I accept that trade-off on a single box that already holds my other services.
A few devices ignore the router’s DNS when they have a private VPN or a hardcoded resolver. I have not forced them. It is easier to leave those devices alone than to fight every app that thinks it knows better.
How to start
- Install the app first. Use the YunoHost package on a server you already trust, and let it bind to the local network before you change anything else.
- Point one device at it. Set the DNS by hand on a laptop and watch the query log for a day. Do not touch the router yet.
- Change the router DNS setting. Once the single device behaves, update the router’s DHCP DNS value so the rest of the network follows.
- Add one list at a time. Keep a short note of what you added and what you had to allowlist. Undoing one small change is easier than rebuilding a long list.
- Expose only what you need. Keep the admin interface behind SSO, and expose a DNS-over-HTTPS path only if you want the same filtering away from home.
Resources
- AdGuard Home on GitHub: source code, documentation and the comparison with Pi-hole.
- AdGuard Home overview: the project’s own description of network-wide filtering.
- YunoHost AdGuard Home app: the package I installed and where to check its current state.
- Pi-hole: the project I tried first, still a good option if you prefer its approach.
- Pi-hole documentation: useful reading if you want to compare the two setups properly.
Written in December 2026. The server here reports AdGuard Home v1.0.0 through the YunoHost app. Names, menu labels and versions change — check current documentation before copying settings.