Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

询问一个参数的使用 #23

Closed
kimanlo opened this issue Mar 8, 2017 · 9 comments
Closed

询问一个参数的使用 #23

kimanlo opened this issue Mar 8, 2017 · 9 comments

Comments

@kimanlo
Copy link

kimanlo commented Mar 8, 2017

请问

  "CacheSize" : 0
}

参数是如何使用的?

@shawn1m
Copy link
Owner

shawn1m commented Mar 8, 2017

DNS 缓存的最大数量,数字为正时本地缓存开启,可以加速 DNS 查询。

@kimanlo
Copy link
Author

kimanlo commented Mar 8, 2017

我设置了数字,例如:4096,打开 -v 观察,看到乱码并且只显示一条解析就不再继续显示。

@shawn1m
Copy link
Owner

shawn1m commented Mar 8, 2017

Windows CMD 的与 log 库之间的问题,目前没有很好的解决方法。
你可以打开 Cache 后用 dig 测试,可以看到效果(查询时间明显缩短)。
你可以把显示的 log 放上来看看。

@kimanlo
Copy link
Author

kimanlo commented Mar 8, 2017

我就是在服务端的log那里看到有乱码和英文,然后在windows cmd 继续查询,服务端的log不会更新了。。。
我在服务器那里用pdnsd套overture,查询到的ip都是国外的,有没有更加好的办法?

@shawn1m
Copy link
Owner

shawn1m commented Mar 8, 2017

可能是 pdnsd 在前面缓存了 DNS 记录,服务端直接用 overture 就好。

@kimanlo
Copy link
Author

kimanlo commented Mar 9, 2017

作者,你好,请问有没有打算log可以输出未txt格式文件呢?便于排查处理。

@shawn1m
Copy link
Owner

shawn1m commented Mar 9, 2017

这个你可以考虑使用 supervisor 之类的工具实现,目前没有打算做在程序里。

@kimanlo
Copy link
Author

kimanlo commented Mar 9, 2017

好的,感谢作者的耐心回复!
打算向朋友推广这东西,不知作者来喝不喝茶的? 🌚

@shawn1m
Copy link
Owner

shawn1m commented Mar 9, 2017

DNS 方面的硬需求其实不多,这是一个开源项目,希望不要直接用于商业用途就好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants