-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
DNS解析第一个失败的情况下不会尝试第二个 #156
Comments
按 #157 (review) ,总结一下目前内置DNS在某个服务器解析失败后,会继续尝试下一个服务器的条件: 1. 使用"domains"字段的优先查询Lines 391 to 405 in d2226cb
398~400行中, 只有 2. 自上而下的默认查询Lines 408 to 426 in d2226cb
423~425行中,只有 #157 的解决方案实质就是将 个人觉得相比而言,修改423~425行中允许DNS查询继续的error可能比较合适。如果采用转化到 client.QueryIP会返回的error来自
来自
|
@Loyalsoldier @Robot-DaneelOlivaw #94 还带来一个遗留问题: Lines 409 to 412 in d2226cb
由于 #94 之前,优先查询只会做一次,因此 #92 (comment) 中提到,优先查询按 #94 修改后,同一个服务器在优先查询阶段可能会尝试查询多次。当时的想法是保留这个行为,不过如果修正了 于是选择是,将 |
我倾向于同一个 client 只查询一次。 |
似乎与此前 v2fly/domain-list-community#158 (comment) 提到的描述一致。
鉴于DNS服务本身相较稳定,再次查询相同DNS可能依然返回空解析,换一个DNS进行查询比较高效,所以我的想法与@Loyalsoldier相同,同一个client只查询一次。 |
我过来问问 dns乱尝试的那个 bug现在还在不在了. |
允许所有错误都继续查询吧,我从9月开始用还没察觉到问题 https://github.com/v2fly/v2ray-core/blob/master/app/dns/server.go#L422-L443
https://github.com/v2fly/v2ray-core/blob/master/app/dns/dohdns.go#L302-L316
|
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days |
你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
d9f50f8
你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
配置的域名解析,解析vmwarefusion.github.io 失败
查询v2ray的结果
直接查询dns服务器的结果:(status为REFUSED, 即对应日志中rcode=5)
按照配置我理解, 当查询第一个dns无返回结果时,应该是不匹配
这个条件的,应该继续往下查询doh。
客户端配置:
/var/log/v2ray/error.log
文件中。客户端错误日志:
The text was updated successfully, but these errors were encountered: