Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

使用doh时出现Post "https://dns.google/dns-query": context canceled

Open GeorgeRudd opened this issue 3 years ago • 6 comments

[Error] app/dns: failed to retrieve response for mabping.chartbeat.net. > Post "https://dns.google/dns-query": context canceled

客户端dns配置 用的是v2rayn 并且8.8.8.8和dns.google已经加到代理列表里了

{
	"hosts": {
		"dns.google": "8.8.8.8",
		"dns.alidns.com": "223.5.5.5"
	},
	"servers": [
		{
			"address": "https://dns.google/dns-query"
		},
		{
			"address": "https+local://dns.alidns.com/dns-query",
			"domains": [
				"geosite:cn"
			],
			"expectIPs": [
				"geoip:cn"
			]
		}
	]
}

服务端

{
	"hosts": {
		"dns.google": "8.8.8.8"
	},
	"servers": [
		{
			"address": "https+local://dns.google/dns-query"
		}
	]
}

请大神指点 谢谢

GeorgeRudd avatar Jan 10 '22 02:01 GeorgeRudd

需要看一下服务端日志 确保请求发给服务端了

yuhan6665 avatar Jan 30 '22 01:01 yuhan6665

需要看一下服务端日志 确保请求发给服务端了

服务端 error.log 只看到一条 [Info] app/dns: DNS: created Local DOH client for https://dns.google/dns-query

GeorgeRudd avatar Jan 31 '22 02:01 GeorgeRudd

你的客户端分流可能有问题 8.8.8.8 是不是没有走代理

yuhan6665 avatar Jan 31 '22 02:01 yuhan6665

你的客户端分流可能有问题 8.8.8.8 是不是没有走代理

你好 8.8.8.8和dns.google已经在代理列表里

GeorgeRudd avatar Feb 01 '22 11:02 GeorgeRudd

看一下客户端完整配置和日志吧

yuhan6665 avatar Feb 01 '22 13:02 yuhan6665

我也遇到这个问题。

dotNetDR avatar Mar 02 '22 08:03 dotNetDR