v2ray icon indicating copy to clipboard operation
v2ray copied to clipboard

v2ray中的DSN怎么修改不生效,恳请各大神指点一下.

Open rianwg opened this issue 2 years ago • 4 comments

服务器的 /etc/resolv.conf 文件中的DNS,已经修改为

nameserver 8.8.8.8 nameserver 8.8.4.4


在v2ray的配置config.json里,修改如下,

"dns": {
	"servers": [
		"https+local://8.8.4.4/dns-query",
		"8.8.8.8",
		"8.8.4.4",
		"localhost"
	]
},

但在检测中还是香港的DNS。

也试过改为这们的, "dns": { "servers": [ "httpsl://8.8.4.4/dns-query", "8.8.8.8", "8.8.4.4", "localhost" ] },

但在检测中还是香港的DNS。

恳请知道的大神指点一二。

rianwg avatar Nov 01 '23 14:11 rianwg

服务器的 /etc/resolv.conf 文件中的DNS,已经修改为

nameserver 8.8.8.8 nameserver 8.8.4.4

在v2ray的配置config.json里,修改如下,

"dns": {
	"servers": [
		"https+local://8.8.4.4/dns-query",
		"8.8.8.8",
		"8.8.4.4",
		"localhost"
	]
},

但在检测中还是香港的DNS。

也试过改为这们的, "dns": { "servers": [ "https://8.8.4.4/dns-query", "8.8.8.8", "8.8.4.4", "localhost" ] },

但在检测中还是香港的DNS。

恳请知道的大神指点一二。

rianwg avatar Nov 01 '23 14:11 rianwg

@rianwg

你是香港的 VPS 的话,检测为 香港的DNS 很正常的,这个 DNS 是给服务器端用的,

233boy avatar Nov 01 '23 14:11 233boy

@233男孩

我服务器是越南的,但装上V2ray后,在 https://whoer.net 里检测,DNS是香港的。不论我怎么改,检测DNS都是香港的。

rianwg avatar Nov 01 '23 14:11 rianwg

@rianwg

你看看是不是 DNS 显示谷歌的 IP,如果是就行了啊,谷歌 DNS 可能没有越南服务器

233boy avatar Nov 02 '23 07:11 233boy