AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
24.9k stars 1.79k forks source link

Disable DNS cache for specific domains/regex #4197

Open SlothCroissant opened 2 years ago

SlothCroissant commented 2 years ago

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 commented 2 years ago

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

demifiend9 commented 2 years ago

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.

lucktu commented 2 years ago

Hope to add this function at an early date.

xenstar commented 2 years ago

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.

geniusyjiang commented 1 year ago

Need this feature badly too

antonchen commented 1 year ago

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

lovelylain commented 1 year ago

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

xRuffKez commented 1 year ago

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

Dennis14e commented 5 months ago

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.

dwyeraidan commented 1 month ago

would love this feature too, especially for DDNS updaters to be faster.

ishanjain28 commented 2 weeks ago

Bumping this up.

In my homelab, I use caddy which uses Cloudflare DNS-01 to issue certificates. It does that by adding records that look like _acme-challenge.<domain>. I'd like to disable all cache for domains that look like this.

In the current setup, It can frequently run into errors because the cache responds with nxdomain from cache.

Greg-Court commented 1 week ago

I forward internal DNS queries to bind9 dns and the optimistic caching feature while great for general purpose public dns resolution is a real pain for internal IPs that might change frequently. Please add this feature!

xenstar commented 1 week ago

It's been more than 2 years. 918 Issues. They don't push new updates for Adguard Home too. Seems the team is losing interest in Adguard Home Project..

xRuffKez commented 5 days ago

@xenstar I think they focus more in their paid services. But i would not say that they lost interest.