AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Disable DNS cache for specific domains/regex

Open SlothCroissant opened this issue 2 years ago • 5 comments

Problem Description

I'd like to be able to disable cache replies for a specific domain/fqdn/regex, etc. Use case is that I have monitors setup to test DNS resolution times against my DNS servers (to identify spikes, issues, etc). 99% of queries come back near 0ms response time (since they are served from AGH cache). Then every so often, when the cache expires, I see spikes to 30ms, effectively making this monitor not terribly useful for external domains.

Proposed Solution

I'd love to be able to see the ability to disable the AGH cache for a specific domain, a wildcard/regex, etc.

SlothCroissant avatar Jan 25 '22 13:01 SlothCroissant

FYI, basically making this into a feature request: #3491

SlothCroissant avatar Jan 25 '22 13:01 SlothCroissant

This feature would be even more beneficial now that Optimistic DNS is a thing. My need for this is that I access my home servers with dynamic dns service and since my ip address changes frequently, optimistic dns feature gets annoying. With cache bypass function like this I could just add exception to my ddns domain.

demifiend9 avatar Jan 26 '22 10:01 demifiend9

Hope to add this function at an early date.

lucktu avatar Mar 17 '22 01:03 lucktu

I need this feature badly. I am using a NAT VPS to set up my Proxy. When the nat server's real IP is changed, it will automatically update in real-time to cloudflare A record. But since Adguard Home cache the domain IP, I can't browse any website because it still try to connect with the previous IP and Port.

There should be an exclude section for optimistic cache for a certain domain, and then it will always check the real domain IP instead of cache.

xenstar avatar Sep 14 '22 05:09 xenstar

Need this feature badly too

geniusyjiang avatar Oct 16 '22 20:10 geniusyjiang

This feature is needed to exclude hostname caching, like myhost.local

antonchen avatar Jan 31 '23 13:01 antonchen

Need this feature too. I use ddns for wireguard endpoint, the cache for my domain make peer refresh too slow.

lovelylain avatar Aug 22 '23 15:08 lovelylain

That would be great to exclude a specific domain from cache, else if my IP changes, i have to clean cache manuelly, so the dot is reachable again via Dynv6

xRuffKez avatar Sep 23 '23 07:09 xRuffKez

We use AdGuard Home configured in the central firewall. Internal DNS queries (for internal domains or private in-addr PTR/SOA) should be sent directly to the domain controllers without caching, for example. The feature would be extremely useful here.

Dennis14e avatar Apr 18 '24 11:04 Dennis14e