2021-11-20T23:45:41.134+0800 warn forward_remote bundled_upstream/bundled_upstream.go:91 upstream failed {"query": "95.ucp-ntfy.kaspersky-labs.com. IN A 48664 137 127.0.0.1:59171", "from": "tls://8.8.8.8:853", "error": "Failed to get a connection from TLSPool to tls://8.8.8.8:853, cause: Failed to connect to 8.8.8.8, cause: all dialers failed to initialize connection: , cause: dial tcp 8.8.8.8:853: connectex: A socket operation was attempted to an unreachable network.", "errorVerbose": "Failed to get a connection from TLSPool to tls://8.8.8.8:853, cause: Failed to connect to 8.8.8.8, cause: all dialers failed to initialize connection: , cause: dial tcp 8.8.8.8:853: connectex: A socket operation was attempted to an unreachable network.\n at github.com/joomcode/errorx.WrapMany()\n\tgithub.com/joomcode/errorx@v1.0.3/wrap.go:82\n at github.com/joomcode/errorx.DecorateMany()\n\tgithub.com/joomcode/errorx@v1.0.3/wrap.go:68\n at github.com/AdguardTeam/dnsproxy/upstream.(*bootstrapper).createDialContext.func1()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/bootstrap.go:252\n at github.com/AdguardTeam/dnsproxy/upstream.tlsDial()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:95\n at github.com/AdguardTeam/dnsproxy/upstream.(*TLSPool).Create()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:75\n at github.com/AdguardTeam/dnsproxy/upstream.(*TLSPool).Get()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:64\n at github.com/AdguardTeam/dnsproxy/upstream.(*dnsOverTLS).Exchange()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_dot.go:40\n at github.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward.(*trustedUpstream).Exchange()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward/forward.go:134\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"}
2021-11-20T23:45:41.134+0800 warn forward_remote bundled_upstream/bundled_upstream.go:91 upstream failed {"query": "95.ucp-ntfy.kaspersky-labs.com. IN A 48664 137 127.0.0.1:59171", "from": "tls://8.8.4.4:853", "error": "Failed to get a connection from TLSPool to tls://8.8.4.4:853, cause: Failed to connect to 8.8.4.4, cause: all dialers failed to initialize connection: , cause: dial tcp 8.8.4.4:853: connectex: A socket operation was attempted to an unreachable network.", "errorVerbose": "Failed to get a connection from TLSPool to tls://8.8.4.4:853, cause: Failed to connect to 8.8.4.4, cause: all dialers failed to initialize connection: , cause: dial tcp 8.8.4.4:853: connectex: A socket operation was attempted to an unreachable network.\n at github.com/joomcode/errorx.WrapMany()\n\tgithub.com/joomcode/errorx@v1.0.3/wrap.go:82\n at github.com/joomcode/errorx.DecorateMany()\n\tgithub.com/joomcode/errorx@v1.0.3/wrap.go:68\n at github.com/AdguardTeam/dnsproxy/upstream.(*bootstrapper).createDialContext.func1()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/bootstrap.go:252\n at github.com/AdguardTeam/dnsproxy/upstream.tlsDial()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:95\n at github.com/AdguardTeam/dnsproxy/upstream.(*TLSPool).Create()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:75\n at github.com/AdguardTeam/dnsproxy/upstream.(*TLSPool).Get()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:64\n at github.com/AdguardTeam/dnsproxy/upstream.(*dnsOverTLS).Exchange()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_dot.go:40\n at github.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward.(*trustedUpstream).Exchange()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward/forward.go:134\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"}
2021-11-20T23:45:41.134+0800 warn forward_remote bundled_upstream/bundled_upstream.go:91 upstream failed {"query": "95.ucp-ntfy.kaspersky-labs.com. IN A 48664 137 127.0.0.1:59171", "from": "tls://1.0.0.1:853", "error": "Failed to get a connection from TLSPool to tls://1.0.0.1:853, cause: Failed to connect to 1.0.0.1, cause: all dialers failed to initialize connection: , cause: dial tcp 1.0.0.1:853: connectex: A socket operation was attempted to an unreachable network.", "errorVerbose": "Failed to get a connection from TLSPool to tls://1.0.0.1:853, cause: Failed to connect to 1.0.0.1, cause: all dialers failed to initialize connection: , cause: dial tcp 1.0.0.1:853: connectex: A socket operation was attempted to an unreachable network.\n at github.com/joomcode/errorx.WrapMany()\n\tgithub.com/joomcode/errorx@v1.0.3/wrap.go:82\n at github.com/joomcode/errorx.DecorateMany()\n\tgithub.com/joomcode/errorx@v1.0.3/wrap.go:68\n at github.com/AdguardTeam/dnsproxy/upstream.(*bootstrapper).createDialContext.func1()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/bootstrap.go:252\n at github.com/AdguardTeam/dnsproxy/upstream.tlsDial()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:95\n at github.com/AdguardTeam/dnsproxy/upstream.(*TLSPool).Create()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:75\n at github.com/AdguardTeam/dnsproxy/upstream.(*TLSPool).Get()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_pool.go:64\n at github.com/AdguardTeam/dnsproxy/upstream.(*dnsOverTLS).Exchange()\n\tgithub.com/AdguardTeam/dnsproxy@v0.39.10/upstream/upstream_dot.go:40\n at github.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward.(*trustedUpstream).Exchange()\n\tgithub.com/IrineSistiana/mosdns/v2/dispatcher/plugin/executable/forward/forward.go:134\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"}
出现了什么问题
简要描述一下问题的表现,以及执行了什么操作导致了问题的出现:
日志里会出现 deps 的信息,其中的一段:
mosdns 的 log 记录:
mosdns.zip
环境
描述一下问题出现的环境,便于复现以更快定位问题。必须包含:
mosdns 的版本号(
mosdns -v
):v2.1.2操作系统和平台:LTSC 2021 x64 19044.1348
使用的配置文件: