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
DNS 重定向
tcp类型的DNS查询不会被mihomo接管,导致DNS污染的情况发生。 UDP类型返回的是正确的。
客户端tcp类型的查询也应该由mihomo接管。
正常配置mihomo. DNS redir-host 模式。
PS C:> ipconfig /flushdns PS C:> dig www.google.com.hk www.google.com.hk. 31 IN A 142.251.175.94 >>>>>>> 正确回复
PS C:> dig www.google.com.hk +tcp www.google.com.hk. 11 IN A 31.13.106.4 >>>>> 被污染到了twitter的地址。
无
No response
The text was updated successfully, but these errors were encountered:
接管不了,核心的DNS只监听UDP,只支持UDP的DNS请求,如果想在不引入其它DNS工具的情况下处理,只能默认开启TUN,使用TUN来处理。
Sorry, something went wrong.
感谢。 为了不会有污染的结果,我让TCP强制转到1053了,失败也比污染强。 至少tcp不成功,client自动就用udp了,嗯,我说的就是Chrome。
MetaCubeX/mihomo#1792
看看这个PR能不能合并吧,如果合并的话我改下防火墙规则就可以劫持TCP了,这样比用TUN来劫持要方便一些。
上游大佬没有合并我的PR,但是还是实现了TCP的监听,我在v1.17.4更新了核心并在防火墙劫持了TCP请求。
No branches or pull requests
自查
DNS 重定向
选项(如无此项请忽略)确认
BUG 描述
tcp类型的DNS查询不会被mihomo接管,导致DNS污染的情况发生。
UDP类型返回的是正确的。
预期行为
客户端tcp类型的查询也应该由mihomo接管。
复现步骤
正常配置mihomo. DNS redir-host 模式。
调试信息
PS C:> ipconfig /flushdns
PS C:> dig www.google.com.hk
www.google.com.hk. 31 IN A 142.251.175.94 >>>>>>> 正确回复
PS C:> dig www.google.com.hk +tcp
www.google.com.hk. 11 IN A 31.13.106.4 >>>>> 被污染到了twitter的地址。
插件日志
无
核心日志
无
附加信息
No response
The text was updated successfully, but these errors were encountered: