Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xianren78 opened this issue Apr 19, 2024 · 0 comments
Open

Comments

@xianren78
Copy link

xianren78 commented Apr 19, 2024

问题现象
我在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

信息收集

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant