Skip to content

对没有获取到有效值的DNS查询结果禁用缓存 #2232

@sagan

Description

@sagan

需求应用场景

配置了 smartdos 使用 1.1.1.1 的 DoT 上游 ( server-tls 1.1.1.1:853 -no-check-certificate )。使用时发现,由于网络问题,有些时候 DNS 查询会失败,然后 smartdns 会缓存这条“查询失败”的记录,导致对应域名一直无法访问。

# nslookup example.com
Server:         127.0.0.1
Address:        127.0.0.1:53

Non-authoritative answer:

** server can't find example.com: REFUSED

建议的方案

对于 SERVFAIL / REFUSED 等类型的 DNS 查询结果不缓存。

设备信息

OpenWrt, smartdns.1.2025.v47.0.9.mipsel-sf-openwrt.ipk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions