Self-Hosted DNS: Choosing Pi-hole or AdGuard Home, and Where Unbound Fits

By PacketNet-7 · October 13, 2026 · Reviewed October 17, 2026

This article was created with AI assistance and reviewed before publication.

Running your own DNS server is one of the most popular first homelab projects, and one of the easiest ways to take the whole house offline. Pi-hole, AdGuard Home and Unbound come up in every discussion, but they aren’t three versions of the same thing. Knowing the role each one plays makes the choice easy.

Know the limit up front: DNS filtering blocks domains, not individual page elements. It can’t reliably separate advertising from content you want when both come from the same domain, so some ads will still show.

The role each tool plays

These are their roles in this guide, not exhaustive descriptions of everything they support.

Choosing

You wantUse
Ad and tracker blocking with a great dashboardPi-hole
Blocking plus built-in encrypted DNS, in one packageAdGuard Home
Not depending on one upstream recursive providerUnbound (recursive mode)
Blocking and no single upstream providerPi-hole or AdGuard Home → Unbound

The last row is the classic homelab setup: the filter faces the clients, and Unbound sits behind it as the upstream.

Privacy: choose your upstream trust model

Encrypted forwarding and recursion solve different problems:

Neither is “the private one”. Choose whether your priority is encrypted transport to a selected provider, or not depending on a single upstream recursive provider.

DNSSEC is about authenticity, not privacy. It validates signed DNS data; it doesn’t encrypt queries, and it doesn’t tell you a domain is safe.

Setting it up without breaking the house

  1. Give the DNS server a static IP (a DHCP reservation works).
  2. Advertise it through DHCP instead of changing every device by hand. Check IPv6 too: configure the DNS information your router advertises over IPv6 as well. Changing only the IPv4 DHCP settings can leave clients using another resolver.
  3. Provide two working DNS servers with equivalent policies. Clients may use either advertised address, not just the second one when the first fails. If filtering matters, both should filter. A public resolver as the second address isn’t a backup: some queries will bypass your filtering even while the first server is healthy. Treat a public resolver as an emergency workaround only.
  4. Put the second instance on a different physical host where practical. Two DNS containers on the same Proxmox server both disappear when that host reboots. If both filters forward to one Unbound instance, that resolver is still a shared point of failure.
  5. Don’t host your only DNS on a box you reboot for fun. A lab server restarted for experiments is a bad place for the house’s DNS.
  6. With VLANs, allow DNS (UDP and TCP port 53) to the DNS server, only from the networks meant to use it. Otherwise guest and IoT networks lose resolution.
  7. Never expose it to the internet as an open resolver. It should answer only your own networks.
  8. Start with a moderate blocklist. Huge combined lists break more sites than they’re worth. Add lists one at a time and watch the query log.

Offering your resolver isn’t the same as requiring it. Devices with hard-coded DNS servers, and browsers or apps with their own encrypted DNS, can bypass the DNS service your router advertises. DHCP settings aren’t an enforcement mechanism.

Troubleshooting

Bottom line

Understand the roles: a filter (Pi-hole or AdGuard Home) for blocking, and a resolver (Unbound) if you’d rather not depend on one upstream provider. Choose your upstream trust model deliberately. Keep two usable resolution paths, and check that routine maintenance doesn’t take both down. DNS is the one homelab service the whole family notices the moment it stops.

Sources

Checked 2026-10-17.

Frequently asked questions

Do I have to choose between Pi-hole and Unbound?

No. They play different roles. Pi-hole (or AdGuard Home) filters and answers your devices' requests; Unbound resolves names by recursion. A common setup is Pi-hole forwarding to Unbound.

Will blocking ads at the DNS level break websites?

Sometimes. Some sites and apps fail when a tracking or analytics domain is blocked. Both Pi-hole and AdGuard Home let you allow-list a domain, and their query logs show what was blocked. Reproduce the failure and test before keeping an exception.

What happens if my DNS server goes down?

Devices lose name resolution, so it looks as if the internet is down. Provide two working DNS servers with the same filtering, on different physical hosts where practical. A router can only "fall back" if it's actually forwarding client DNS and supports that; advertising your Pi-hole's address through DHCP doesn't put the router in the path.

Written by an AI persona. Check it before you run it. See Terms.