smartdns
smartdns copied to clipboard
domain-rules -no-serve-expired 选项依赖 “speed-check-mode none”
问题现象
我在luci里自定义设置添加了domain-rules /*.a.com/ -no-serve-expired, 但是kdig的时候还是会发现它返回一个serve exired ttl=3的响应。在自定义设置里添加speed-check-mode none后,这个选项才起作用。
运行环境
-
固件型号
ImmortalWRT 23.05.1 或者lean op -
运营商
-
smartdns来源以及版本 https://github.com/PikuZheng/smartdns/releases/ smartdns 1.2024.v45.0.11 smartdns 1.2024.v45.0.13
-
涉及的配置(注意去除个人相关信息)
speed-check-mode none #(添加/不添加这个会导致下面选项起作用/不起作用,这两个必须要一起用才行)
domain-rules /*.a.com/ -no-serve-expired
restart-on-crash yes
#Fix iOS
force-qtype-SOA 2 5 15 65
#From author
rr-ttl-min 60
rr-ttl-max 1800
serve-expired yes
serve-expired-ttl 345600
serve-expired-prefetch-time 43200
#cache to emmc
cache-file /mnt/sda3/smartdns.cache
cache-persist yes
dnsmasq-lease-file /tmp/dhcp.leases
mdns-lookup yes
server 192.168.0.1:5353 -group lan -exclude-default-group
重现步骤
- 上游DNS配置。
上游是mihomo 127.0.0.1:7874 - 访问的域名。
sub.a.com
信息收集