goflyway icon indicating copy to clipboard operation
goflyway copied to clipboard

偶尔出现 Dial failed: dial, lookup

Open pluveto opened this issue 5 years ago • 7 comments

日志如下:

D:\app\Goflyway>goflyway.exe -up="cf://****:8880" -k="*****" -l=":8100"
2019-06-12 08:08:47.334 CST,main.go:267, INFO ,goflyway 181021015134
2019-06-12 08:08:47.351 CST,main.go:278, WARNING ,Failed to read ACL config: open chinalist.txt: The system cannot find the file specified.
2019-06-12 08:08:47.351 CST,main.go:436, INFO ,Upstream config: ****:8880
2019-06-12 08:08:47.351 CST,main.go:416, INFO ,Client 8901aeb started: you->0.0.0.0:8100->cloudflare->****:8880
2019-06-12 08:08:47.351 CST,main.go:412, INFO ,Web console started at 127.0.0.1:8110
2019-06-12 08:08:55.762 CST,client.go:394, ERROR ,"Dial failed: dial, lookup ****: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server."

有时候又正常。 我开启了CDN。

pluveto avatar Jun 12 '19 00:06 pluveto

如日志所述,一般这个时候DNS查询失败了(比如被干扰)

coyove avatar Jun 12 '19 01:06 coyove

请问能不能自定义DNS服务器?是哪里的被干扰?cdn还是服务器还是客户端

pluveto avatar Jun 12 '19 02:06 pluveto

目前go官方是没有支持的,比较简单的做法是修改系统的dns。

coyove avatar Jun 12 '19 03:06 coyove

现在DNS不抱错了,但是出现了另一个问题:

2019-06-12 14:29:37.006 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - api-ng.pomotodo.com:443
2019-06-12 14:29:39.039 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ws.infinitynewtab.com:443
2019-06-12 14:29:40.662 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - www.baidu.com:443
2019-06-12 14:29:40.676 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - www.baidu.com:443
2019-06-12 14:29:40.678 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - www.baidu.com:443
2019-06-12 14:29:41.861 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss0.baidu.com:443
2019-06-12 14:29:42.107 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss0.baidu.com:443
2019-06-12 14:29:42.602 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss1.baidu.com:443
2019-06-12 14:29:42.642 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss1.baidu.com:443
2019-06-12 14:29:42.859 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss1.baidu.com:443
2019-06-12 14:29:43.091 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - cambrian-images.cdn.bcebos.com:443
2019-06-12 14:29:43.096 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss0.bdstatic.com:443
2019-06-12 14:29:43.101 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ss2.bdstatic.com:443
2019-06-12 14:29:44.589 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - sp1.baidu.com:443
2019-06-12 14:29:47.959 CST,client.go:390, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - clients5.google.com:443
2019-06-12 14:29:47.973 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - ssl.gstatic.com:443
2019-06-12 14:29:47.984 CST,client.go:390, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - apis.google.com:443
2019-06-12 14:29:47.986 CST,client.go:390, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - www.google.com:443
2019-06-12 14:29:48.040 CST,client.go:390, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - lh3.googleusercontent.com:443
2019-06-12 14:29:48.309 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:29:48.370 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:48.392 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:48.412 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:48.739 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:48.954 CST,client.go:381, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - www.gstatic.com:443
2019-06-12 14:29:49.314 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:29:49.314 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:29:49.315 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:29:49.503 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:49.721 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:49.722 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:49.750 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:50.140 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:29:50.141 CST,client.go:390, LOG ,Proxy (cached) - lh3.googleusercontent.com:443
2019-06-12 14:29:50.148 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:29:50.149 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:29:50.524 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:50.546 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:50.552 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:50.552 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:29:50.553 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:29:50.967 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:50.986 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:51.087 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:29:51.092 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:29:51.092 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:29:51.464 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:51.488 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:51.493 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:29:51.625 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:00.043 CST,client.go:394, ERROR ,"Dial failed: dial 118.178.135.232:443, Connection timed out"
2019-06-12 14:30:03.621 CST,client.go:381, LOG ,Pass (cached) - ws.infinitynewtab.com:443
2019-06-12 14:30:08.978 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:30:08.978 CST,client.go:381, LOG ,Pass (cached) - ssl.gstatic.com:443
2019-06-12 14:30:08.978 CST,client.go:390, LOG ,Proxy (cached) - lh3.googleusercontent.com:443
2019-06-12 14:30:08.980 CST,client.go:381, LOG ,Pass (cached) - www.gstatic.com:443
2019-06-12 14:30:08.980 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:30:08.980 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:30:09.366 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:09.388 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:09.395 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:09.413 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:10.553 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:30:10.559 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:30:10.561 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:30:10.554 CST,client.go:390, LOG ,Proxy (cached) - lh3.googleusercontent.com:443
2019-06-12 14:30:10.938 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:10.952 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:11.485 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:30:11.490 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:30:11.890 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:11.909 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:11.968 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:11.989 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:24.627 CST,client.go:394, ERROR ,"Dial failed: dial 118.178.135.232:443, Connection timed out"
2019-06-12 14:30:28.643 CST,client.go:381, LOG ,Pass (cached) - ws.infinitynewtab.com:443
2019-06-12 14:30:34.871 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:30:34.871 CST,client.go:381, LOG ,Pass (cached) - ssl.gstatic.com:443
2019-06-12 14:30:34.872 CST,client.go:390, LOG ,Proxy (cached) - lh3.googleusercontent.com:443
2019-06-12 14:30:34.873 CST,client.go:381, LOG ,Pass (cached) - www.gstatic.com:443
2019-06-12 14:30:34.873 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:30:34.873 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:30:35.046 CST,io.go:192, DEBUG ,"GC b+20s: 4 active, 0 purged"
2019-06-12 14:30:35.147 CST,client.go:390, LOG ,Network error: proxyconnect tcp: tls: oversized record received with length 20527 - clients4.google.com:443
2019-06-12 14:30:35.235 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:35.301 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:35.303 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:35.303 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:35.550 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:35.730 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:30:35.736 CST,client.go:390, LOG ,Proxy (cached) - clients5.google.com:443
2019-06-12 14:30:35.731 CST,client.go:390, LOG ,Proxy (cached) - apis.google.com:443
2019-06-12 14:30:35.730 CST,client.go:390, LOG ,Proxy (cached) - lh3.googleusercontent.com:443
2019-06-12 14:30:35.875 CST,client.go:390, LOG ,Proxy (cached) - www.google.com:443
2019-06-12 14:30:36.145 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:36.165 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:36.257 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:36.296 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527
2019-06-12 14:30:37.057 CST,client.go:394, ERROR ,Dial failed: tls: oversized record received with length 20527

pluveto avatar Jun 12 '19 06:06 pluveto

这是用了什么模式

coyove avatar Jun 12 '19 07:06 coyove

已经解决了,是我强开https,但是不支持造成的。据说只有新版本go支持https?

------------------ 原始邮件 ------------------ 发件人: "Coyove"[email protected]; 发送时间: 2019年6月12日(星期三) 下午3:12 收件人: "coyove/goflyway"[email protected]; 抄送: "321632768"[email protected];"Author"[email protected]; 主题: Re: [coyove/goflyway] 偶尔出现 Dial failed: dial, lookup (#144)

这是用了什么模式

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

pluveto avatar Jun 12 '19 07:06 pluveto

1.3吗?是的

coyove avatar Jun 12 '19 08:06 coyove