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

domain-rules -no-serve-expired 选项依赖 “speed-check-mode none” #1727

Open xianren78 opened 2 months ago

xianren78 commented 2 months ago

问题现象
我在luci里自定义设置添加了domain-rules /*.a.com/ -no-serve-expired, 但是kdig的时候还是会发现它返回一个serve exired ttl=3的响应。在自定义设置里添加speed-check-mode none后,这个选项才起作用。

运行环境

  1. 固件型号
    ImmortalWRT 23.05.1 或者lean op

  2. 运营商

  3. smartdns来源以及版本 https://github.com/PikuZheng/smartdns/releases/ smartdns 1.2024.v45.0.11 smartdns 1.2024.v45.0.13

  4. 涉及的配置(注意去除个人相关信息)

    
    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


**重现步骤**
1. 上游DNS配置。  
上游是mihomo 127.0.0.1:7874
2. 访问的域名。  
sub.a.com

**信息收集**