Replies: 10 comments 1 reply
-
能提供一下旧版本的 build 吗,我更新后很多请求返回 |
Beta Was this translation helpful? Give feedback.
-
@snylonue 旧版本我手上暂时没有存留。能提供一下配置文件,logging和以及你手上build的版本号吗?https 的配置发生了一些变化,如果没有正确配置可能会导致连接失败返回servfail 格式如下: quad9:
https:
uri: https://quad9.net/dns-query
addr: 9.9.9.9 |
Beta Was this translation helpful? Give feedback.
-
@LEXUGE 部分日志
乱码的 配置文件---
verbosity: 'info'
address: 127.0.0.1:5253
ratelimit: 4096
table:
start:
if:
qtype:
- AAAA
then:
# A list of actions is allowed here
- blackhole
# The next tag to go
- end
else:
- dispatch
dispatch:
if: any
then:
- query: domestic
- check_secure
check_secure:
if:
geoip:
# path: Country.mmdb
codes:
- CN
else:
- query: secure
- end
upstreams:
aliyun:
https:
no_sni: true
uri: https://dns.alidns.com/dns-query
addr: 223.6.6.6
domestic:
hybrid:
- aliyun
cloudflare:
https:
no_sni: true
uri: https://cloudflare-dns.com/dns-query
addr: 1.0.0.1
quad9:
https:
no_sni: true
uri: https://dns11.quad9.net/dns-query
addr: 9.9.9.11
secure:
hybrid:
- quad9
- cloudflare |
Beta Was this translation helpful? Give feedback.
-
看起来像是网络问题?目前 no sni在新版本是没有效果的,可能因此遭遇了屏蔽?如果有翻墙软件的话可以尝试指定proxy,看看能否连接 doh模块应该是正常的,因为aliyun没有坏。 不过failed to receive query就很可疑了,以前有这个情况吗?是在Windows还是linux? |
Beta Was this translation helpful? Give feedback.
-
用 cloudflare 的 dns 时会出现,quad9 不会 |
Beta Was this translation helpful? Give feedback.
-
table:
start:
if:
qtype:
- INT: 64 这个写法是可以的 |
Beta Was this translation helpful? Give feedback.
-
@snylonue |
Beta Was this translation helpful? Give feedback.
-
另外还有个情况反馈一下,就是这样写是能过滤了qtype64 65的请求,但这个换库之后的版本,我用dig查询之后发现过滤的方法是不回应,让客户端查询超时。 1:换库前的版本情况 ; <<>> DiG 9.16.16 <<>> www.taobao.com -t type64 ;; OPT PSEUDOSECTION: ;; ANSWER SECTION: ;; AUTHORITY SECTION: ;; Query time: 11 msec dcompass 的日志显示: 2:换库后的情况 ; <<>> DiG 9.16.16 <<>> www.taobao.com -t type64 2021-08-01 10:42:19,258 INFO [droute::router::table::rule] Domain "www.taobao.com" matches at rule 两者在应答的行为上有不同,个人猜测可能立即返回结果会更好,不会加重服务端的性能负担? 请大佬帮忙看看和分析,谢谢 |
Beta Was this translation helpful? Give feedback.
-
我本地测试了一下, matcher 的行为是正确的,我感觉你的配置写的有出入?因为你的『旧版本』的日志显示是通过转发到 鉴于目前我怀疑不是软件本身的 bug,所以我把它转移到 discussion 来了 |
Beta Was this translation helpful? Give feedback.
-
@snylonue 最新的 commit 支持了 |
Beta Was this translation helpful? Give feedback.
-
使用 build 20210731_0959 ,无法过滤UNKNOWN: 65, UNKNOWN: 64的qtype
配置文件内一旦添加
qtype:
- AAAA
- Unknown: 64
- Unknown: 65
就报错了
Caused by:
table: data did not match any variant of untagged enum RuleBuilders at line 6 column 8
如果去除或使用之前的版本则正常
望大佬修复
Beta Was this translation helpful? Give feedback.
All reactions