Routing and freedom outbound ignore Fake DNS#696
Conversation
Turn off fake DNS for request sent from Routing and Freedom outbound. Fake DNS now only apply to DNS outbound. This is important for Android, where VPN service take over all system DNS traffic and pass it to core. "UseIp" option can be used in Freedom outbound to avoid getting fake IP and fail connection
|
FakeDNS 不走路由,还有什么意义吗?🤔 |
是这样的,V2Ray 大体上要处理3类DNS,1是透明代理 或者 Android VPN 发出的DNS(在真正的连接开始之前的DNS),2是在内部路由时候选择非 asis ,并且没有配到domain而需要IP的DNS,3是选择了freedom outbound之后开始直连的DNS。 |
|
在启用fakedns的情况下,会导致outbounds中以域名作为地址的vmess也走fakeip,例如: 结果连接example.com的时候用的是ip 240.0.0.0, 导致失败的连接,这个pr有考虑这个问题吗? |
|
@darren it is possible fixed by this pr. Do you have log when you see this issue? I need to take a look at the log. |
|
@yuhan6665 |
我不太熟悉透明代理的使用场景,这种情况下,是否需要在 |
|
这个PR在原理上没有什么问题。如果没有这个设置的话,那么就会需要在dns的部分单独设置白名单才能让相关的域名不走fakedns。 |
确实不放第一个有可能不启用 |
Ref: rurirei/Kitsunebi#6 "dns": { "servers": [ "fakedns", "8.8.8.8" ] },
"outbounds": { "protocol": "dns" },
"routing": [ { "network": "udp", "port": "53", "outboundTag": "dns" } ] |
non- |
|
Merge for now. New PRs for other features are welcomed. |
Setting On the other hand, no matter what mode you set, I don't see value getting Fake IP at freedom outbound. It can only cause trouble. |
|
当前的配置结构还是有些问题,详见讨论 #789 。 |
|
should dns server of v2ray (DoH) meet fakedns as well, is it? @yuhan6665 |
|
@rurirei I understand on Android DOH format should work without issue. DOHL will not work unless you list the DNS server and ip in the hosts section. |
See discussion in #406.
Only internal is changed, there is no change in config. Fakedns still function as one of the normal item in dns object.