We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.27.0
透明代理/开放DNS服务器到53端口供局域网内使用
V2Ray的内置DNS拒绝解析无点的域名。无点的域名不仅不能交由DNS Server解析,也无法进入Static Host查询:
v2ray-core/app/dns/server.go
Lines 300 to 315 in 1664b4e
这导致的问题有:
systemd-resolved
Mijia Cloud
内置DNS应当对无点/本地域名提供更好的支持,包括:
以下是对支持方法的提案:
dotless:<substr>
<substr>
"localhost"
"domain"
.local
.localdomain
"servers": ["localhost"]
"servers": [{ "address": "localhost", "domains": ["dotless:", "domain:local", "domain:localdomain"] }]
The text was updated successfully, but these errors were encountered:
容我厚颜无耻地提一个请求:方便的话,麻烦把 DNS 模块的这个 bug 也修一下 v2fly/domain-list-community#91 (comment)
路由模块对于规则都是优先匹配,而 DNS 模块对于规则是最后匹配,希望 DNS 模块跟路由模块保持一致:优先匹配域名。
Sorry, something went wrong.
@Loyalsoldier hhh这个我也注意到了,当时看了代码,这是因为用于域名匹配的Trie树实现造成的问题,导致后插入的优先匹配(并且只会尝试匹配这个,因为旧规则被覆盖了)。
当初想一起提的,不过后来觉得跟问题不是很相关,还是个breaking change(虽然利用这个feature的估计很少……),并且调教出了合适的配置,就先放着了。。
Update README.md (v2fly#88)
bcfd0c7
Add reference on README.ENG.MD
Successfully merging a pull request may close this issue.
你正在使用哪个版本的 V2Ray?
4.27.0
你的使用场景是什么?
透明代理/开放DNS服务器到53端口供局域网内使用
你看到的不正常的现象是什么?
V2Ray的内置DNS拒绝解析无点的域名。无点的域名不仅不能交由DNS Server解析,也无法进入Static Host查询:
v2ray-core/app/dns/server.go
Lines 300 to 315 in 1664b4e
这导致的问题有:
systemd-resolved
之类服务可以正确返回,但送给V2Ray后会被拒绝且不给回复,导致sudo卡很长一段时间才有响应,见app/dns: Invalid domain name when not containing dot v2ray/v2ray-core#2618 )。Mijia Cloud
之类的似乎是路由器设定的域名(然后被路由器内置DNS返回IP),见Domain Sniffing Cannot Handle Domains That Cannot Be Resolved v2ray/v2ray-core#1913, 米家服务访问问题 [Warning] v2ray.com/core/app/router: resolve ip for Mijia Cloud > v2ray.com/core/app/dns: invalid domain name v2ray/v2ray-core#2615 。你期待看到的正确表现是怎样的?
内置DNS应当对无点/本地域名提供更好的支持,包括:
以下是对支持方法的提案:
dotless:<substr>
。该规则用于匹配无点域名。当<substr>
被设置时,无点的域名需要进一步匹配作为子串的<substr>
。未设置时则匹配所有无点域名。"localhost"
且没有为其设置"domain"
字段时,默认为其配置三条匹配规则:无点域名、.local
域名与.localdomain
域名。也即以下配置:"localhost"
查询,而非经过外部DNS然后返回大量的SERVFAIL。参考资料
The text was updated successfully, but these errors were encountered: