faid.alani
← all posts

> homelab · build 02

One DNS Server, Every Device Filtered

AdGuard Home in a Proxmox container with encrypted upstreams, and why its "41% blocked" headline needed a second look.

Faid Al-Ani3 min read

Second piece of my lab rebuild: a DNS server that blocks ads, trackers and known-malicious domains for every device in the house, with nothing installed on the devices themselves. For a security lab it does a second job too. Every DNS lookup on the network lands in one log I can search.

What I built

ItemSetup
ContainerUnprivileged Debian 13 LXC, 1 vCPU, 512 MB RAM
DeploymentProxmox community helper script, Advanced Install
CoverageWhole network, handed out by the router over DHCP
UpstreamsQuad9 (malware-filtered) + Cloudflare, both encrypted (DoH)
BlocklistsThree maintained lists, not twenty
AdGuard Home dashboard showing 399 DNS queries, 164 blocked, top clients and top blocked domains
The dashboard shortly after setup: 399 queries, 164 blocked.

Three decisions that mattered

  1. TUN/TAP: no. My Tailscale container needed the TUN device. A DNS server doesn't, so it doesn't get one. Same question, opposite answer, decided by what the service actually does.
  2. I checked the default upstream. AdGuard already sends lookups out encrypted, but by default to Quad9's unfiltered service. I switched to Quad9's malware-blocking resolver plus Cloudflare.
  3. Three blocklists, not twenty. More lists means more broken sites and little extra coverage.
Proxmox helper script prompt asking to enable TUN/TAP device support, with No selected
Least privilege in one prompt: a DNS server has no use for a tunnel device.
AdGuard upstream DNS settings with Quad9 and Cloudflare DNS-over-HTTPS addresses
Encrypted upstreams: the ISP can't read the network's DNS lookups.

What "41% blocked" really means

The headline number looked great, so I read it the way I'd read an alert:

  • Most of it is telemetry, not ads. About 80% of the blocks came from just five Google and Microsoft background domains that retry constantly. It's also a small sample right after setup.
  • One block is a security win. dns.google is Google's own encrypted DNS. Blocking it stops devices from quietly going around AdGuard.
  • The stats mix old and new. The top upstream is still the default I replaced, because the counts include queries from before the change.

Known gaps

  • The admin page is plain HTTP. Fine on my own LAN for now. A reverse proxy with HTTPS is coming later in the build.
  • It's a single point of failure. If this container stops, the house loses DNS. Uptime Kuma, the next build, will tell me when that happens.

The full walkthrough, every setting and all 25 screenshots are on GitHub.

Read the full write-up →