r/AdGuardHome • • 26d ago

Average Response Time

What's y'all avg response time? And what does your setup look like? eg. AGH + upstream, AGH + Dnscrypt/Dnsproxy or Unbound?

I got an 18 ms average response time using AGH + Unbound w/ Redis + DNSProxy forwarding to Quad9, I'm just wondering if y'all got more optimized/secured setup. I don't do full recursive because I don't like feeling naked behind my ISP, and Quad9 seems trustworthy.

5 Upvotes

24 comments sorted by

2

u/Noble_Llama 26d ago edited 26d ago

My setup, active/passive with automatic failover:

  • Primary: AdGuard Home and Unbound, each in its own LXC container on Proxmox. This node handles all DNS traffic.
  • Standby: AdGuard Home and Unbound on a Raspberry Pi 4 (DietPi). This node is failover only; it serves nothing as long as the Proxmox node is up.
  • Chain: AdGuard Home → Unbound → Quad9. Unbound forwards to Quad9 over DoT.
  • keepalived holds a virtual IP (IPv4 + IPv6 ULA) on the Proxmox node. The router announces only the VIPs as DNS servers, via DHCP for IPv4 and via RA/DHCPv6 for IPv6. If the Proxmox node goes down, the VIP moves to the Pi, and it moves back once Proxmox is up again. Clients never notice.
  • adguardhome-sync keeps both AGH instances identical (filter lists, custom rules, rewrites, clients), so the standby is always ready to take over.

Unbound runs as a DNSSEC-validating, caching forwarder. I benchmarked a handful of DoT resolvers from my ISP, and Quad9 came out fastest at ~10 ms. serve-expired is enabled, and the caches are generous (msg 128 MB / rrset 256 MB).

AGH's own cache is disabled. Unbound handles all caching, which gives me one cache layer instead of two and finer control (separate msg/rrset caches, serve-expired). AGH just filters.

Average response time (AGH dashboard), after a 2–3 day warm-up: 0.5–3 ms. That's purely Unbound's cache, including the hop between the two containers.

I ran Redis as a cachedb backend for Unbound for a while, but it didn't add any real value for me. The warm-up is quick, and Unbound's in-memory cache is more than big enough. You visit the same sites over and over anyway, so Redis was basically just sitting there bored.

1

u/[deleted] 26d ago

Powerful complex set. Similar set up as you but without the backup. But it seems i got 17-20ms even after days of warm up(Unbound forward to Quad9 DoT). Must’ve been server location on my end

1

u/Resistant4375 26d ago

Why forward to Quad9 over unbound?

You can use DoT/DoQ/DoH etc. in AGH and have caching etc.

1

u/Noble_Llama 26d ago

Fair question! For me it mostly comes down to DNSSEC. AGH doesn't validate signatures itself, it just trusts whatever the upstream tells it. Unbound does the full validation locally, so I'm not relying on Quad9 for that part.

And I just like having more knobs to turn. Unbound lets me tweak caching, prefetching and hardening in ways AGH doesn't, and if I ever feel like switching to full recursion, I just remove the forward-zone and everything else stays the same.

So I basically let each tool do what it's good at: AGH handles the filtering, Unbound does the resolving. To be fair though, in daily use you won't notice a difference. With a warm cache both answer in under a millisecond. It's more about control 😄

1

u/Resistant4375 26d ago

Quad9 does the validating on its own resolvers/cache which it then serves back to the public.

1

u/Noble_Llama 26d ago

Yeah, they do. The difference is that without local validation I'm just taking Quad9's word for it. The AD flag in their response is basically a "trust me, it's fine". With Unbound validating, I check the signature chain myself up to the root key, so even if something upstream went wrong or got compromised, a bad answer wouldn't get through.

Realistically, with DoT to Quad9 that's a pretty unlikely scenario, so it's more defense in depth than a must-have. But it costs me nothing, so why not.

0

u/Resistant4375 26d ago

Which is what quad9 and other public resolvers do before they add it to their resolvers

1

u/2112guy 26d ago

Between 9 and 11 ms, using AGH to perform parallel requests to
quic://p2.freedns.controld.com
quic://dns.nextdns.io
quic://dns.quad9.net

(Those are the fastest in my location after testing several other servers)

No need for Unbound, recursive or DNSProxy

1

u/[deleted] 26d ago

Those are impressive speed. You run to any trouble with any apps/sites by just running quic? AI said there are some bugs for some apps with quic protocol I’m not sure what it is but I have DoH DoT DoQ quad9. I might just use quic if there’s no issue

1

u/2112guy 26d ago

No issue at all. Answers are answers regardless of the protocol used. Btw, using optimistic caching. I posted the average which includes cached answers

1

u/Resistant4375 26d ago

Why would there be issues with apps or sites?

It goes back to the client as plain DNS on Port 53.

Client request (plain DNS)
|
AGH (DoQ)
|
Answer back to client (plain DNS)

Stop taking “advice” from AI…!!

1

u/lurking-in-the-bg 25d ago

Curious why you use p2 on ControlD and the filtered Quad9 vs dns10. It seems like if you have a good list like Hagezi's Pro or Pro Plus and any variation of his TIF list then the filtering server side seems redundant and just adds headaches when things break and you try to troubleshoot to see what's wrong.

1

u/Resistant4375 26d ago

Like my question to another poster here:

Why forward to Quad9 over unbound?

You can use DoT/DoQ/DoH etc. in AGH and have caching etc.

1

u/[deleted] 26d ago

Hi thanks. Noted on that other comment. I did try AGH with all the encrypted protocol + optimistic cache + dnssec and it performs worst with avg time response between 100-150ms. That’s why im using unbound + redis and it seems to handle caching much better

1

u/Resistant4375 26d ago

Redis isn’t really needed unless you’re serving a massive network and need to retain the DNS cache on reboot etc.

In reality it makes little to no difference building the cache again from fresh.

1

u/[deleted] 26d ago

Yeah i need persistent cache on restart that’s why i do it. I’ll remove it someday when I no longer have the need to tinker with my setup but for now it's useful for me

1

u/Resistant4375 26d ago

I’m curious in what way?

2

u/nm_ 26d ago edited 26d ago

2ms average processing time.

I run parallel mode in AGH with quic://dns.quad9.net and my own local unbound recursive resolver. quad9 responds faster for new queries and unbound responds even faster once the cache builds up.

1

u/damjankov 26d ago

2-3ms, cloudfare, quad9, optimistic caching Openwrt 25.12.6 on tuf-ax4200

1

u/Hot-Composer-8614 21d ago

10 ms Quad 9 + Cloudflare DoH Optimistic cache enabled

0

u/mxz117 26d ago

19ms, nothing doing anything special

1

u/[deleted] 26d ago

Just AGH?

1

u/mxz117 26d ago

Yes, using cloudflare and quad9