Closed aRe00t closed 6 years ago
抓包看了下, 都是卡在 dns 解析环节了. v2ray 会同时查询AAAA和 A, 这个网站没有 AAAA 记录, 可能要回溯根服务器, 很久才收到 error. A的返回结果中是这样的, 没有该域名直接对应的 A 记录... www.bjjs.gov.cn. 194 IN CNAME www5.f5.bjjs.gov.cn. www5.f5.bjjs.gov.cn. 60 IN A 1.202.180.15
可能相关的问题: #257 #186
另外一个现象是: 停止访问 google.com 十几分钟后, 重新访问时会卡上1~3秒, 但之后的访问就很流畅了. 其他被墙网站有类似现象.
我的临时解决方案是: 把这些域名在 routing 中设置直接走 vps, 则不会出现这种情况.
由于还没学 go, 只大致从代码中看出, 这些问题可能产生于 dns 解析的耗时? 第一次解析的耗时会影响首次访问, ttl 过期后, 从缓存中剔除了解析结果. 所以再次访问时, 又会卡一下...
如果碰到 www.bjjs.gov.cn 这种 dns 设置不规范的网站, 会在 dns 阶段卡上很久.
我的临时解决方案是: 在 switchyomega 中设置常用的国内网站走直连, 剩余的走 v2ray.
chrome 解析 www.bjjs.gov.cn 挺快的, 不清楚是什么原理. 用curl, wget 访问 www.bjjs.gov.cn, 都能明显看到会在 dns 阶段卡上3秒, 但 v2ray 会卡上十几~30秒.
也有这个问题. 现在用meow 配合v2ray使用就正常了
DNS 的问题会在下一版本修复,对于 DNS 有问题的网站,从 V2Ray 的角度来说,也没什么办法
版本: V2Ray v2.6.1 (One for all) 20161113 服务器: Ubuntu 16.10 x64 客户端: macOS 10.12.1 (16B2555) 试了几种访问方式: Chrome + SwitchyOmega + shadowsocks + 隐私模式 Chrome + SwitchyOmega + vmess + 隐私模式 Safari + shadowsocks 现象:
时间线: 15:17:50, 访问 www.bjjs.gov.cn, 页面一直是空白 15:18:20, 此时页面加载了一部分 15:18:50, 页面加载完毕
日志
客户端配置