shawn1m / overture

A customized DNS relay server
MIT License
1.79k stars 284 forks source link

Openwrt上使用v1.6-rc4版本解析非常缓慢 #176

Closed bxz2311196368 closed 4 years ago

bxz2311196368 commented 4 years ago

问题:解析速度非常慢,打开网页大概要10秒以上,同时大概率为“找不到 xxxxx 的服务器 IP 地址”,即使打开了网页,页面显示也不全,例如访问淘宝,页面上的图片大半都显示不出来。

使用版本:overture-linux-mipsle-softfloat(v1.6-rc4) 配置文件:https://paste.ubuntu.com/p/6NJmC9PVVg/ 日志文件:https://paste.ubuntu.com/p/CQjY5D4k3Z/ openwrt版本:19.07 Dnsmasq版本:2.80-14 Dnsmasq设置:DNS转发 127.0.0.1#5353,忽略解析文件,缓存 0 路由器型号:newifi d2 架构: MediaTek MT7621 ver:1 eco:3 内核版本: 4.14.141

注:当dnsmasq恢复使用解析文件/tmp/resolv.conf.auto(即上级路由(移动光猫)的DNS)时,网页访问恢复正常,但是overture就形同虚设了,被上级路由抢答。

nasbdh9 commented 4 years ago

使用1.5RC3或之前版本没有问题,从1.5RC4开始就会出现解析速度非常慢的现象

跟强制使用正则有关?

bxz2311196368 commented 4 years ago

看来是正则问题,使用SmartDNS (https://github.com/import-yuefeng/smartDNS) 使用配置 suffix-tree 就能正常解析了。 我的配置文件config.json

ted-dev-42 commented 4 years ago

我也遇到这个问题,所以解决办法就是换成smartDNS? @bxz2311196368

nasbdh9 commented 4 years ago

我也遇到这个问题,所以解决办法就是换成smartDNS? @bxz2311196368

https://github.com/shawn1m/overture/blob/master/README.md#configuration-syntax

DomainFile.Matcher: Matching policy and implementation, including "full-list", "full-map", "regex-list" and "suffix-tree". Default value is "regex-list".