pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
7.92k stars 1.05k forks source link

Total speed check failure shouldn't be cached #1737

Open McSinyx opened 1 month ago

McSinyx commented 1 month ago

I am setting up a VPN (for IPv6) and noticed that resolution fails for domain X when none of the IP(v6)s is reachable. This alone does not make any practical difference, but when the IPs becomes pingable, the old result is still cached so the domain fails to resolve while it should. IMHO this is not a desired behavior.

I am on SmartDNS 45 and I apologize in advance if I missed the configuration option for this.

PikuZheng commented 1 month ago

Old results will be cached until the ttl set by the domain owner has expired; empty results will be cached; no results will not be cached.

Maybe I don't understand. I hope you can give me an example.