pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
8.31k stars 1.07k forks source link

大佬帮忙看看配置文件 log错误太多 #825

Closed lalasou closed 1 year ago

lalasou commented 2 years ago

问题现象
error log 太多了

运行环境

  1. 老毛子固件k2p

  2. 运营商
    移动宽带 重现步骤

  3. 上游DNS配置。

bind [::]:53 bind-tcp [::]:53 server-name smartdns server 211.138.24.66 server-tcp 208.67.222.222:5353 server-https https://223.5.5.5/dns-query server-https https://doh.pub/dns-query server-tls 1.0.0.1:853 server-https https://i.233py.com/dns-query serve-expired yes serve-expired-ttl 172800 log-level error log-file /tmp/smartdns.log log-size 13k log-num 1 cache-size 90000 prefetch-domain yes force-AAAA-SOA no rr-ttl 600 rr-ttl-min 60 rr-ttl-max 600 dualstack-ip-selection yes dualstack-ip-selection-threshold 30ms ca-file /etc/storage/cacert.pem ca-path /etc/storage/

speed-check-mode ping,tcp:443

speed-check-mode ping,tcp:80 address /api.themoviedb.org/13.249.134.27 address /api.themoviedb.org/2600:9000:212f:9600:c:174a:c400:93a1 address /smartplugconnect.phicomm.com/122.114.98.95

信息收集

  1. 将/var/log/smrtdns.log日志作为附件上传。

[2021-10-29 21:28:35,056][ERROR][ dns_client.c:1950] SSL read fail error no: (null)(1409e10f) [2021-10-29 21:28:35,056][ERROR][ dns_client.c:2128] recv failed, server 120.53.80.136:443, Bad address [2021-10-29 21:42:01,049][ERROR][ dns_client.c:1950] SSL read fail error no: (null)(0) [2021-10-29 21:42:01,049][ERROR][ dns_client.c:2128] recv failed, server 120.53.80.136:443, Bad address [2021-10-29 21:43:05,943][ERROR][ dns_client.c:1950] SSL read fail error no: (null)(1409e10f) [2021-10-29 21:43:05,943][ERROR][ dns_client.c:2128] recv failed, server 1.0.0.1:853, Bad address [2021-10-29 23:41:37,048][ERROR][ dns_client.c:1950] SSL read fail error no: (null)(1409e10f) [2021-10-29 23:41:37,048][ERROR][ dns_client.c:2128] recv failed, server 1.0.0.1:853, Bad address

lalasou commented 2 years ago

不知道是我配置不对还是哪里的问题 主路由 不翻墙 移动自己dns RSSHUB 都没办法访问 求指导 求指导

GH-X commented 2 years ago

SSL read fail error 证书文件有问题或者是没有证书文件 /etc/storage/cacert.pem 这个文件有吗?

pymumu commented 2 years ago

这个有可能是对应dns服务器的网络出现了波动,导致请求超时,smartdns强制超时断链导致的。 可以配置大于3个以上上游即可,对功能基本无影响。

lalasou commented 2 years ago

也是无语啊 208.67.222.222:5353可以打开rsshub doh.pub 玩腾讯游戏延时40-50左右 不用60-90 1.0.0.1 还经常连不上 223.5.5.5偶尔也连不上 无语了

移动网 免费的不好用啊

lalasou commented 2 years ago

这个有可能是对应dns服务器的网络出现了波动,导致请求超时,smartdns强制超时断链导致的。

可以配置大于3个以上上游即可,对功能基本无影响。

我发现 github.com不科学上网的情况下 每几分钟就必须换ip才行 具体几分钟没测试

lalasou commented 2 years ago

老毛子 默认没有这个证书 自己生成 ssh-keygen 一路回车

ssh-keygen -f id_rsa.pub -m 'PEM' -e > id_rsa.pem 把smartdns 证书 指向这个id_rsa.pem 就可以了

pymumu commented 1 year ago

最新版本验证,有问题reopen issue