Closed zhj9709 closed 3 years ago
在路由设置里选择跳过国内地址就可以了吧
在路由设置里选择跳过国内地址就可以了吧
选择了,但国内域名还是会用设置的dns解析的,看我日志,你可以自己试一下
确实,我也在等这个功能,能分流就好了。国内用本地,国外用指定最好了。每次手动改完,一换节点就又自己变默认了。
同样的需求,能按照国内外dns分流解析就完美了。
"dns": { "servers": [ { "address": "1.1.1.1", "port": 53, "domains": [ "geosite:geolocation-!cn" ] }, { "address": "114.114.114.114", "port": 53, "domains": [ "geosite:cn" ] }, "8.8.8.8", "223.5.5.5" ] }
支持等这个需求啊
已经支持了
默认的dns是8.8.8.8,所以使用HTTP代理时,所有的域名解析都会使用8.8.8.8这个dns来解析
部分log内容
``` 2020/04/21 14:28:15 [Info] v2ray.com/core/app/dns: DNS: created udp client inited for 8.8.8.8:53 2020/04/21 14:28:15 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:10080 2020/04/21 14:28:15 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 0.0.0.0:10080 2020/04/21 14:28:15 [Info] v2ray.com/core/transport/internet/udp: listening UDP on 0.0.0.0:10080 2020/04/21 14:28:15 [Warning] v2ray.com/core: V2Ray 4.23.1 started 2020/04/21 14:28:16 [Info] [3942513452] v2ray.com/core/proxy/socks: TCP Connect request to tcp:ws.infinitynewtab.com:443 2020/04/21 14:28:16 [Info] [3942513452] v2ray.com/core/app/dispatcher: sniffed domain: ws.infinitynewtab.com 2020/04/21 14:28:16 [Debug] v2ray.com/core/app/dns: UDP:8.8.8.8:53 querying DNS for: ws.infinitynewtab.com. 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] v2ray.com/core/transport/internet/udp: establishing new connection for udp:8.8.8.8:53 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] v2ray.com/core/app/dispatcher: default route for udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] v2ray.com/core/common/mux: dispatching request to udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:itunes.apple.com.shcu1.jiyou.cloud:10001 2020/04/21 14:28:16 [Info] [2050257808] v2ray.com/core/proxy/socks: TCP Connect request to tcp:live.github.com:443 2020/04/21 14:28:16 [Info] [2050257808] v2ray.com/core/app/dispatcher: sniffed domain: live.github.com 2020/04/21 14:28:16 [Info] [2050257808] v2ray.com/core/app/dispatcher: taking detour [proxy] for [tcp:live.github.com:443] 2020/04/21 14:28:16 [Info] [2050257808] v2ray.com/core/common/mux: dispatching request to tcp:live.github.com:443 2020/04/21 14:28:16 [Info] [4023392561] v2ray.com/core/proxy/socks: TCP Connect request to tcp:www.baidu.com:443 2020/04/21 14:28:16 [Info] [3581301863] v2ray.com/core/proxy/socks: TCP Connect request to tcp:www.baidu.com:443 2020/04/21 14:28:16 [Info] [3581301863] v2ray.com/core/app/dispatcher: sniffed domain: www.baidu.com 2020/04/21 14:28:16 [Debug] v2ray.com/core/app/dns: UDP:8.8.8.8:53 querying DNS for: www.baidu.com. 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] [4023392561] v2ray.com/core/app/dispatcher: sniffed domain: www.baidu.com 2020/04/21 14:28:16 [Debug] v2ray.com/core/app/dns: UDP:8.8.8.8:53 querying DNS for: www.baidu.com. 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] [2417346892] v2ray.com/core/proxy/socks: TCP Connect request to tcp:ss1.bdstatic.com:443 2020/04/21 14:28:16 [Info] [2417346892] v2ray.com/core/app/dispatcher: sniffed domain: ss1.bdstatic.com 2020/04/21 14:28:16 [Debug] v2ray.com/core/app/dns: UDP:8.8.8.8:53 querying DNS for: ss1.bdstatic.com. 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] [2991816502] v2ray.com/core/proxy/socks: TCP Connect request to tcp:dss0.bdstatic.com:443 2020/04/21 14:28:16 [Info] [2991816502] v2ray.com/core/app/dispatcher: sniffed domain: dss0.bdstatic.com 2020/04/21 14:28:16 [Debug] v2ray.com/core/app/dns: UDP:8.8.8.8:53 querying DNS for: dss0.bdstatic.com. 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Info] [3348731938] v2ray.com/core/proxy/socks: TCP Connect request to tcp:live.github.com:443 2020/04/21 14:28:16 [Info] [3348731938] v2ray.com/core/app/dispatcher: sniffed domain: live.github.com 2020/04/21 14:28:16 [Info] [3348731938] v2ray.com/core/app/dispatcher: taking detour [proxy] for [tcp:live.github.com:443] 2020/04/21 14:28:16 [Info] [3348731938] v2ray.com/core/common/mux: dispatching request to tcp:live.github.com:443 2020/04/21 14:28:16 [Info] [1434672251] v2ray.com/core/proxy/socks: TCP Connect request to tcp:dss1.bdstatic.com:443 2020/04/21 14:28:16 [Info] [1434672251] v2ray.com/core/app/dispatcher: sniffed domain: dss1.bdstatic.com 2020/04/21 14:28:16 [Debug] v2ray.com/core/app/dns: UDP:8.8.8.8:53 querying DNS for: dss1.bdstatic.com. 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 2020/04/21 14:28:16 [Debug] v2ray.com/core/transport/internet/udp: dispatch request to: udp:8.8.8.8:53 ```当选择的节点可以正式使用的时候,用起来其实没有太大的差别,但当选中的节点不能用的时候,可能很明显的感觉到访问国内网站的速度变慢了,尤其是刚启动服务的时候,打开一个国内网站,例如百度,需要等很长时间才可以加载出来。换成114dns后不会出现这个问题,但有些国外的站点可能会出现解析不出来的情况(大家可以测试一下有没有相同的问题)。所以希望可以加一个dns分流功能,为geosite:cn设置国内dns
DNS设置成localhost也不会有这样的问题