helloworld icon indicating copy to clipboard operation
helloworld copied to clipboard

点几次保存&应用之后就不能解析DNS了,该怎么排查,节点还正常

Open fengqi opened this issue 2 years ago • 7 comments

有时候需要调整节点、访问控制或者其他的,点一两次保存&应用后,谷歌连通性测试就不通过了,表现是DNS不能解析,但是我通过浏览器插件SwitchyOmega直连是可以使用的,证明节点是正常的。

在局域网机器上

root@portal:~# nslookup twitter.com
;; Got SERVFAIL reply from 192.168.50.1, trying next server
;; Got SERVFAIL reply from 202.106.46.151, trying next server
Server:         202.106.195.68
Address:        202.106.195.68#53

** server can't find twitter.com: SERVFAIL

在路由器上

root@RT-ACRH17:~# nslookup twitter.com 127.0.0.1:5335
Server:         127.0.0.1:5335
Address:        127.0.0.1:5335

** server can't find twitter.com: SERVFAIL

然后恢复的就比较随缘了,也不知道问题出在哪,只能临时用下浏览器插件。

PS:由于一直找不到原因在哪,我通过不保留配置重刷固件解决了,此问题我碰到过多次了,每次都是这样解决的。。。卸载删除配置重装没用,也可能是我没删干净。

补充一下:我的运行模式是socks5+gfwlist,DNS默认的8.4

fengqi avatar Jun 14 '22 17:06 fengqi

如果是lean的库,建议关闭turbe acc的DNS缓存后再看看,可能有惊喜……

minlang112 avatar Jun 15 '22 15:06 minlang112

如果是lean的库,建议关闭turbe acc的DNS缓存后再看看,可能有惊喜……

我没开dns缓存

fengqi avatar Jun 16 '22 02:06 fengqi

好的,我查下看看

Bruce.carrot93 @.***>于2022年7月2日 周六07:58写道:

/usr/share/shadowsocksr/bin/ssrplusupdate.sh 查一下,似乎有个bug,它加入/etc/crontab/root任务时,看似正常,实际上2分钟左右就会重启dnsmasq,导致dns不时中断。临时方法是改一下它的crontab格式。

— Reply to this email directly, view it on GitHub https://github.com/fw876/helloworld/issues/917#issuecomment-1172789764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6MTFWILPYLHKZHCE7PXTVR6A37ANCNFSM5YYPN7EQ . You are receiving this because you authored the thread.Message ID: @.***>

fengqi avatar Jul 02 '22 03:07 fengqi

还有/etc/init.d/shadowsockr,这里的初始化机制是存在bug的,在ssrplus频繁switch/save&apply的时候,dnsmasq及相关update脚本,会不断重启,包括上面的脚本在内,执行时间会很长。而新的ssrplus或者smartdns又依赖dns2tcp等解析机制,导致dns出现不时中断的现象。

暂时没看出来哪里有问题,不过每次应用之后确实执行的步骤挺多,算是把所有的配置都刷了一遍,这中间如果哪里出错了挺难排查的

fengqi avatar Jul 04 '22 03:07 fengqi

今天不知道哪操作错了,我记得就只切了下节点,然后就不能解析了,ps查看进程确实DNS每隔一会儿就自己重启了

fengqi avatar Jul 16 '22 10:07 fengqi

用smartdns吧,我调试后挺好的

xun188 avatar Dec 18 '22 03:12 xun188

用smartdns吧,我调试后挺好的

完全替换调dnsmasq吗还是配合

fengqi avatar Dec 29 '22 06:12 fengqi