AdguardTeam / AdGuardHome

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

Persistent DNS cache #3859

Open chenyajunai opened 2 years ago

chenyajunai commented 2 years ago

Can I modify the cache to the hard disk? Restart the software or the machine to read it normally. Now the cache is in memory, and there will be no cache after restart

ainar-g commented 2 years ago

Currently, there is no persistent DNS cache, so marking this as a feature request.

chenyajunai commented 2 years ago

When the domain name in the cache is about to expire, it can be refreshed and updated in the background in advance

xxnuo commented 1 year ago

Need it: cache to the hard disk.

Zerorigin commented 1 week ago

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.

chmichael commented 3 days ago

Anyone can implement it ? It will be very useful for users who load tons of pages