mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

默认情况下 SSR PLUS DNS结果根本无法缓存(由于引入拒绝ipv6结果导致的问题),nslookup & dig 延迟每次依然有200-300多. dnsmasq处设置缓存依然无效,设置TTL也无效,应该是bug。 解决办法是手动指定缓存TTL为最大一小时。域名查询实测有效缓存0延迟。 此变更仅使开启dnsmasq缓存的情况下正常工作。
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Change the following lines if you want dnsmasq to serve SRV
|
|
# records.
|
|
# You may add multiple srv-host lines.
|
|
# The fields are <name>,<target>,<port>,<priority>,<weight>
|
|
|
|
# A SRV record sending LDAP for the example.com domain to
|
|
# ldapserver.example.com port 289
|
|
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
|
|
|
|
# Two SRV records for LDAP, each with different priorities
|
|
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
|
|
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
|
|
|
|
# A SRV record indicating that there is no LDAP server for the domain
|
|
# example.com
|
|
#srv-host=_ldap._tcp.example.com
|
|
|
|
# The following line shows how to make dnsmasq serve an arbitrary PTR
|
|
# record. This is useful for DNS-SD.
|
|
# The fields are <name>,<target>
|
|
#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"
|
|
|
|
# Change the following lines to enable dnsmasq to serve TXT records.
|
|
# These are used for things like SPF and zeroconf.
|
|
# The fields are <name>,<text>,<text>...
|
|
|
|
#Example SPF.
|
|
#txt-record=example.com,"v=spf1 a -all"
|
|
|
|
#Example zeroconf
|
|
#txt-record=_http._tcp.example.com,name=value,paper=A4
|
|
|
|
# Provide an alias for a "local" DNS name. Note that this _only_ works
|
|
# for targets which are names from DHCP or /etc/hosts. Give host
|
|
# "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
|