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

减少反复请求解析相关域名 #58

Open
DarkmatterUAE opened this issue Mar 1, 2021 · 8 comments
Open

减少反复请求解析相关域名 #58

DarkmatterUAE opened this issue Mar 1, 2021 · 8 comments

Comments

@DarkmatterUAE
Copy link

DarkmatterUAE commented Mar 1, 2021

我在家用网络中使用自己的DNS服务器过滤广告,但是在开始运行DD@H之后,DNS服务器的日志数据库开始膨胀了起来,检查后,发现运行DD@H的设备非常频繁地请求B站直播相关的域名。
经过一段时间的测试,我发现程序运行一天,DNS服务器上增加了约2.9万条相关域名的查询记录。这严重拖慢了DNS服务器的响应速度,并导致闪存设备的快速损耗。
请问有没有可能在DD@H中增加缓存DNS查询结果的方法,以减少这种频繁重复DNS查询的现象?

image

@simon300000
Copy link
Member

请问操作系统?

@simon300000
Copy link
Member

奇怪 我用的方法应该没有跳过操作系统的DNS缓存之类的 hummm

@DarkmatterUAE
Copy link
Author

请问操作系统?

"Debian GNU/Linux 10 (buster)

主楼的那张图是在发现问题之后,在本地架设测试用dns服务器的数据统计截图。
话说linux有DNS Cache吗,Windows是有DNS 缓存的🤨

simon300000 added a commit that referenced this issue Mar 4, 2021
@simon300000
Copy link
Member

wua 我加进去了一个DNS缓存,不知道能不能解决这个问题

@DarkmatterUAE
Copy link
Author

v1.8.0release里问题还是存在,对api.live.bilibili.com的请求大概5秒发生一次。
截图

@simon300000
Copy link
Member

我看看能不能设置一个长一点的时间

@simon300000
Copy link
Member

哎,没找着。。
我研究一下别的办法

@simon300000
Copy link
Member

啊草,的确是个bug。。这个看起来是跳过了cache的那一部分

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