Coder Social home page Coder Social logo

Comments (11)

zfl9 avatar zfl9 commented on July 19, 2024

这个确实蛋疼,因为即使是打印出错的域名,实际上也没有什么信息量。

要不就把这个log改为verbose级别吧,眼不见心不烦

主要是给这个log定级很烦,你说他是错误吧,也不一定,因为大部分情况下,是网络波动导致的偶尔超时。
如果说他不是错误(普通日志),也不一定,万一上游确实有问题,一直超时,你把他隐藏起来也不妥。

主要是程序是死的,没法在代码里面知道,上游究竟是有问题导致一直超时,还是网络原因偶尔超时。

from chinadns-ng.

oTnTh avatar oTnTh commented on July 19, 2024

我觉得还是相信用户吧,毕竟会来用chinadns-ng的人,应该能判断出网没断但是dns出问题了是啥样的情况。

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

行吧,那我改为 verbose 级别(带 -v 选项运行时,才打印此log)。

from chinadns-ng.

oTnTh avatar oTnTh commented on July 19, 2024

哇,你是真的快。

既然你这么亲切(?),discussion那边又没人用,那我顺便问一个问题。

之前用chinadns的时候,时不时会遇到网没断,但是什么网站都打不开的情况,重启chinadns即可解决。因为问题没法稳定复现,而且那个时候chinadns也没在维护了,所以我就cron每天定时重启,将就用着了。

这次换了路由器,也换了chinadns-ng,并且同样是每天定时重启,但网没断但是网站打不开的情况依然遇到过一次,并且重启chinadns-ng以后问题也消失了。

没来提issue,同样还是因为没法稳定复现。而且在openwrt上我也没法开着verbose跑chinadns-ng,不然一天下来路由器的闪存就塞爆了。

我想问的是,假如下次再遇到这种情况,有没有什么办法可以保存现场给你提供一些信息定位问题?

要是没办法也没关系,这个问题对我个人来说影响不大。实在不行就等玩x86软路由的人来找问题在哪好了…

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

这还真不是很好搞,openwrt上记录verbose不现实,因为日志太多会炸。可是没有日志,也很难定位问题。。

不过也许能从error日志找到一些端倪,总之发日志过来,看看也无妨。

from chinadns-ng.

oTnTh avatar oTnTh commented on July 19, 2024

嗯,那等更新了chinadns-ng,我再观察一下,要是有什么值得一提的发现再来找你。

谢谢啦~

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

不过无法访问网站,最好先确定是不是 dns 问题。

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

见最新版本。

from chinadns-ng.

yk271 avatar yk271 commented on July 19, 2024

哇,你是真的快。

既然你这么亲切(?),discussion那边又没人用,那我顺便问一个问题。

之前用chinadns的时候,时不时会遇到网没断,但是什么网站都打不开的情况,重启chinadns即可解决。因为问题没法稳定复现,而且那个时候chinadns也没在维护了,所以我就cron每天定时重启,将就用着了。

这次换了路由器,也换了chinadns-ng,并且同样是每天定时重启,但网没断但是网站打不开的情况依然遇到过一次,并且重启chinadns-ng以后问题也消失了。

没来提issue,同样还是因为没法稳定复现。而且在openwrt上我也没法开着verbose跑chinadns-ng,不然一天下来路由器的闪存就塞爆了。

我想问的是,假如下次再遇到这种情况,有没有什么办法可以保存现场给你提供一些信息定位问题?

要是没办法也没关系,这个问题对我个人来说影响不大。实在不行就等玩x86软路由的人来找问题在哪好了…

openwrt 上同样遇到过这个问题,但复现概率极低,好像是出现在宽带重新拨号以后,或者是代理节点出现波动(掉线一会又恢复之后),日志中也没有找到任何有用的信息。

from chinadns-ng.

oTnTh avatar oTnTh commented on July 19, 2024

@yk271 在我这里复现概率好些不低,刚又遇到了…

我提交了个新的issue,有时间的话你看看跟你的情况是否一样吧。

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

#125

from chinadns-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.