-
Notifications
You must be signed in to change notification settings - Fork 61
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
[Bug Report] 似乎 DAED/DAE 并未正确处理 SRV DNS 记录 #400
[Bug Report] 似乎 DAED/DAE 并未正确处理 SRV DNS 记录 #400
Comments
Thanks for opening this issue! |
翻看了一下 dae 的相关代码,根据 component/routing/domain_matcher/ahocorasick_slimtrie.go 合法域名符号中并未包含 var ValidDomainChars = trie.NewValidChars([]byte("0123456789abcdefghijklmnopqrstuvwxyz-.^")) 附带找到的资料: https://stackoverflow.com/questions/2180465/can-domain-name-subdomains-have-an-underscore-in-it |
试了一下,现在版本号为 在 DNS 设置里面分别设置了: ## domain suffix
qname(suffix:_https._tcp.mirrors.ustc.edu.cn) -> local
## or full domain
qname(full:_https._tcp.mirrors.ustc.edu.cn) -> local 在 DAED 的重载/重启过程中,不会报 warning 了。 但 分别进行手动解析和 apt update 触发该域名解析,日志如下:
|
https://github.com/daeuniverse/dae/actions/runs/7362811384?pr=388 抱歉迟来的补救,我已确信此问题被修复,麻烦帮忙确认一下,谢谢 🙏。 @CallMeR |
感谢支持! 不过这次 ci 编译出来的 dae 版本,我目前用的还是 daed 环境 :) Daed 新版发布了我应该能进一步测试这个问题了 @mzz2017 |
Checks
Current Behavior
DNS 规则如下 (其中
127.0.0.1:8053
为本地 smartdns ):最近发现日志中存在如下日志:
发现形如
_https._tcp.pkgs.tailscale.com
类型为SRV
的域名均发送到了127.0.0.1:8053
进行处理。_https._tcp.pkgs.tailscale.com
域名处理应该符合规则,但_https._tcp.mirrors.ustc.edu.cn
似乎处理的不正确。为了判断是否为 Geo 数据库分流导致的问题,手动在 dns 规则中增加规则:
得到如下告警:
进一步尝试:
得到如下告警:
这么看来是
DomainMatcher
对域名处理异常导致。Expected Behavior
_https._tcp.mirrors.ustc.edu.cn
这类域名的DomainMatcher
,应该被正确处理。_https._tcp.mirrors.ustc.edu.cn
发往 local dns其他种类的 DNS 请求 (Domain Name System (DNS) Parameters), 还在进一步观察
Steps to Reproduce
No response
Environment
cat /etc/os-release
) : Debian 12 latestuname -a
) :6.1.0-13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
Anything else?
No response
The text was updated successfully, but these errors were encountered: