请教一个smartdns的域名匹配问题

之前一直用的mosdns,看了下smartdns更小也能实现我目前的需求就迁移到smartdns了,就目前有一个小瑕疵,为了给pt实现cf优选,我做了如下rule

speed-check-mode ping,tcp:80,tcp:443  # 测速模式
response-mode fastest-ip    # 响应模式: fastest-ip, fastest-response
force-AAAA-SOA yes 
# 双栈优选
dualstack-ip-selection no
server-https https://101.101.101.101/dns-query # TWNIC DoH
server 64.6.64.6
server 10.10.0.1 -group local
server-tls 223.5.5.5:853 -group domestic -exclude-default-group -host-name dns.alidns.com -subnet x.x.x.x # 阿里 DoT
server-tls 8.8.8.8:853 -group gfw -exclude-default-group -host-name dns.google -subnet x.x.x.x # Google DoT

conf-file /etc/smartdns/rules/chinalist.domain.smartdns.conf
# ptsite.conf包含憨憨的域名hhanclub.top
# PT 加速
domain-set -name ptsite -file /etc/smartdns/rules/ptsite.conf
address /domain-set:ptsite/172.67.78.6,162.159.136.168,104.26.7.71,104.20.19.63

chinalist.domain.smartdns.conf这个文件里都是类似如下规则,排查了没有能匹配hhanclub.top的

domain-rules /wooide.com/ -speed-check-mode tcp:80 -address - -nameserver domestic

然后从客户端查询hhanclub.top被分到domestic组去查询了,而不是设置的优选IP,ptsite.conf里的其他域名都正常,在default组,唯独hhanhhanclub.top优点腰间盘突出

[2025-03-16 09:27:59,689][ INFO][     dns_server.c:2409] result: hhanclub.top, client: 10.10.2.13, qtype: 1, id: 47919, group: domestic, time: 0ms
[2025-03-16 09:27:59,690][ INFO][     dns_server.c:2409] result: hhanclub.top, client: 10.10.2.13, qtype: 28, id: 40758, group: domestic, time: 0ms
[2025-03-16 09:29:47,570][ INFO][     dns_server.c:2409] result: hdtime.org, client: 10.10.2.13, qtype: 1, id: 5343, group: default, time: 0ms
[2025-03-16 09:29:47,572][ INFO][     dns_server.c:2409] result: hdtime.org, client: 10.10.2.13, qtype: 28, id: 22211, group: default, time: 0ms

刚开始搞看配置实在看不出哪里有猫病,有会的大佬帮看看

14 个赞

不懂帮顶 :grin:

2 个赞