AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Persist DNS cache across dnsproxy restarts

Open agneevX opened this issue 3 years ago • 1 comments

AGH version: 0.107.0-a.213+936a7057

Problem Description

When any of the Save/Apply buttons in Settings -> DNS Settings is hit, dnsproxy is restarted and the built-up cache is lost.

Proposed Solution

Since Optimistic caching is a new feature currently in beta, it should not be reset when dnsproxy restarts. This defeats the purpose of caching if its deleted when I change an upstream server for example.

Alternatives Considered

Additional Information

agneevX avatar Dec 03 '21 15:12 agneevX

In most parts of China..., the domain name resolution results for major international services provided by domestic public DNS providers have been poisoned by the GFW.

Service connections to overseas public DNS providers have also been disrupted or blocked to some extent, resulting in packet loss, high latency, or unavailability. Therefore, DNS cache persistence is of great significance to these users.

It greatly optimizes the network experience, prevents cache loss when restarting services, and avoids the lengthy process of re-accumulating caches.

Zerorigin avatar Jun 30 '24 00:06 Zerorigin