DNSMASQ ttl config (#6779)

默认情况下 SSR PLUS DNS结果根本无法缓存(由于引入拒绝ipv6结果导致的问题),nslookup & dig 延迟每次依然有200-300多.
dnsmasq处设置缓存依然无效,设置TTL也无效,应该是bug。
解决办法是手动指定缓存TTL为最大一小时。域名查询实测有效缓存0延迟。 

此变更仅使开启dnsmasq缓存的情况下正常工作。
This commit is contained in:
z826540272 2021-05-03 22:50:02 +08:00 committed by GitHub
parent fb93cd2795
commit d3d6f3a2c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,3 +35,8 @@
# "bert" another name, bertrand
# The fields are <cname>,<target>
#cname=bertand,bert
neg-ttl=600
# max-ttl=600
min-cache-ttl=3600
auth-ttl=3600