Replies: 1 comment
-
这种情况应该是优先使用 IPv6 导致的,看看固件里面有没有设置,或者换个固件试试 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
你好,我在openwrt上搭建了v2ray (v4.34.0),使用TPROXY做透明代理,v2ray使用内置dns。vps server仅有ipv4地址。
现遇到一个问题:v2ray的内置dns在查询vps地址时(直连)收到的dns response 总是AAAA (很少时候会有A)类型,因为vps没有ipv6地址,因此dns response一直是empty response,导致v2ray无法连接vps。
我试了以下操作:
另外,v2ray的内置dns在查询其他domain的时候,好像会同时请求A和AAAA类型,并一直更新收到的response进缓存,由于AAAA一般回来的慢,导致v2ray的dns 缓存都是AAAA类型,由于openwrt和vps都没有ipv6地址,导致根本无法连接。
看到代码里面好像有一个
IPOption
控制发出的dns请求是A还是AAAA类型,请问在我所描述的问题场景下,是否可以让v2ray的内置dns只请求A类型的地址?我还观察到,v2ray的内置dns list应该是会按照sort后的顺序依次请求,但是在我描述的场景下,第一个dns收到AAAA的empty response后,v2ray好像就不再用其他的dns了。
实在被这个问题折腾了很久,很期待能够得到解答。谢谢
config.json
error.log
Beta Was this translation helpful? Give feedback.
All reactions