DNS 出站流量似乎并没有被转发到内置 DNS #2470
Replies: 2 comments 5 replies
-
I believe that you forgot this part: {
"tag": "dns-out",
"proxySettings": {
"tag": "proxy_outbound_tag"
}
} replace |
Beta Was this translation helpful? Give feedback.
-
Sorry for misunderstanding your v2ray log in the first place. Your DNS traffic was probably not actually sent to `114.114.114.114', if you configured the DNS hijacking correctly. The configuration listed in the guide should work, but it wouldn't respond to non-A/AAAA queries. So adding the If you set the log level to e.g. I run send a DNS lookup for the domain dig +short @123.32.123.33 parrot.live The access log from v2ray reads like this:
But the real packets were sent to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
我在 Linux 搭建了透明代理(单纯上网,没有用作主路由或旁路由),个人的理解是标记
dns-out
的出站查询应该被转发到 V2Ray 内置的 DNS,但似乎并没有。简略配置如下:
但查看日志发现,不管是
curl baidu.com
还是curl google.com
,V2Ray 配置里的223.5.5.5
和https://1.1.1.1/dns-query
都被无视了,走了 114 的 DNS:114 是我主路由的配置,Linux 把它自动拉取在了
/etc/resolv.conf
中,所以看起来就是使用了系统默认的 DNS。谢谢各位大佬!
Beta Was this translation helpful? Give feedback.
All reactions