2022-01-03T14:29:36.384+0800 warn forward_remote bundled_upstream/bundled_upstream.go:91 upstream failed {"query": "www.bing.com. IN A 18529 63 127.0.0.1:xxxx", "from": "https://public.dns.iij.jp:443/dns-query", "error": "couldn't do a GET request to 'https://public.dns.iij.jp:443/dns-query', cause: Get \"https://public.dns.iij.jp:443/dns-query?dns=SGEBAAABAAAAAAAAA3d3dwRiaW5nA2NvbQAAAQAB\": read tcp xxx.xxx.xxx.xxx:xxxx->103.2.57.5:443: wsarecv: An existing connection was forcibly closed by the remote host.", "errorVerbose": "couldn't do a GET request to 'https://public.dns.iij.jp:443/dns-query', cause: Get \"https://public.dns.iij.jp:443/dns-query?dns=SGEBAAABAAAAAAAAA3d3dwRiaW5nA2NvbQAAAQAB\": read tcp xxx.xxx.xxx.xxx:xxxx->103.2.57.5:443: wsarecv: An existing connection was forcibly closed by the remote host.\n at github.com/AdguardTeam/dnsproxy/upstream.(dnsOverHTTPS).exchangeHTTPSClient()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.12/upstream/upstream_doh.go:96\n at github.com/AdguardTeam/dnsproxy/upstream.(dnsOverHTTPS).Exchange()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.12/upstream/upstream_doh.go:59\n at github.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward.(upstreamWrapper).Exchange()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward/forward.go:138\n at github.com/IrineSistiana/mosdns/v2/dispatcher/pkg/bundled_upstream.(BundledUpstream).ExchangeParallel.func1()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/pkg/bundled_upstream/bundled_upstream.go:77\n at runtime.goexit()\n\truntime/asm_amd64.s:1581"}
出现了什么问题 虽然也可以用,但是log警告确实很多, 简要描述一下问题的表现,以及执行了什么操作导致了问题的出现: 发现把dns服务器删得只剩- addr: 'https://1.1.1.1/dns-query' 之后故障消失,不过我不记得以前用iij和nextdns有问题啊 把nextdns和iij换成tls协议之后也没有报错了 mosdns 的 log 记录:
2022-01-03T14:29:36.384+0800 warn forward_remote bundled_upstream/bundled_upstream.go:91 upstream failed {"query": "www.bing.com. IN A 18529 63 127.0.0.1:xxxx", "from": "https://public.dns.iij.jp:443/dns-query", "error": "couldn't do a GET request to 'https://public.dns.iij.jp:443/dns-query', cause: Get \"https://public.dns.iij.jp:443/dns-query?dns=SGEBAAABAAAAAAAAA3d3dwRiaW5nA2NvbQAAAQAB\": read tcp xxx.xxx.xxx.xxx:xxxx->103.2.57.5:443: wsarecv: An existing connection was forcibly closed by the remote host.", "errorVerbose": "couldn't do a GET request to 'https://public.dns.iij.jp:443/dns-query', cause: Get \"https://public.dns.iij.jp:443/dns-query?dns=SGEBAAABAAAAAAAAA3d3dwRiaW5nA2NvbQAAAQAB\": read tcp xxx.xxx.xxx.xxx:xxxx->103.2.57.5:443: wsarecv: An existing connection was forcibly closed by the remote host.\n at github.com/AdguardTeam/dnsproxy/upstream.(dnsOverHTTPS).exchangeHTTPSClient()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.12/upstream/upstream_doh.go:96\n at github.com/AdguardTeam/dnsproxy/upstream.(dnsOverHTTPS).Exchange()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.12/upstream/upstream_doh.go:59\n at github.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward.(upstreamWrapper).Exchange()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward/forward.go:138\n at github.com/IrineSistiana/mosdns/v2/dispatcher/pkg/bundled_upstream.(BundledUpstream).ExchangeParallel.func1()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/pkg/bundled_upstream/bundled_upstream.go:77\n at runtime.goexit()\n\truntime/asm_amd64.s:1581"}
环境
描述一下问题出现的环境,便于复现以更快定位问题。必须包含:
mosdns 的版本号(
mosdns -v3
):操作系统和平台: win10 64位 使用的配置文件: