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

疯狂的DNS请求!每秒超过1000次!! #601

Closed
adrianzhang opened this issue Jul 10, 2024 · 12 comments
Closed

疯狂的DNS请求!每秒超过1000次!! #601

adrianzhang opened this issue Jul 10, 2024 · 12 comments
Labels
perf Performance optimization
Milestone

Comments

@adrianzhang
Copy link

Description(required)

内网装有Pi-hole作为DNS服务器,发现一台主机(ubuntu 22.04 server without GUI amd64)超过了每秒并发1000次的默认阈值。

然后开始追踪,在该主机上用tcpdump查看,果然dns查询请求快得令人窒息。用netstat -anp | grep -w 53查看,除了systemd-resolver就是gopeed。

立刻停止gopeed,再用tcpdump看,请求消失了。然后再重启gopeed,tcpdump查看还是没有疯狂的dns请求。

那么在停止gopeed之前发生了什么?gopeed有一个bt下载任务,流量为0,但是在运行中,已经运行了许多天。再之前有许多bt下载任务已经完成。在web页面中把这个运行任务暂停,疯狂dns并不会停。

App Version(required)

gopeed -v 或 --version都没有显示,只好查询其下载日期:2024年3月30日,在本repo的release下载。

OS Version(required)

ubuntu 22.04 server without GUI amd64

Snapshots

没必要

Log

?

@adrianzhang
Copy link
Author

adrianzhang commented Jul 10, 2024

在web页面重新启动该BT下载任务,又发生了不少DNS请求,但速率明显没那么高。
并且,web页面上看到本次是从0开始下载。(而以前曾下载过一部分)
而且这次启动后下载能达到100MB/s以上,之前是0。

@adrianzhang
Copy link
Author

adrianzhang commented Jul 10, 2024

看源代码中有下载
https://fastly.jsdelivr.net/gh/ngosang/trackerslist/trackers_all.txt

但是这个主机上用wget下载该文件是不成功的,原因估计是你懂的。

@adrianzhang
Copy link
Author

到了跟上次差不多的进度,又流量为0了,监测dns请求,有很多,但速率不到每秒1000。
在web页面上暂停了该任务,dns请求立刻停止了。这跟出故障时的表现很不一样。

@monkeyWie
Copy link
Member

monkeyWie commented Jul 10, 2024

能看到dns请求的域名吗,还有看你的描述应该是偶现的?看看能找到必现的步骤提供下吗,然后版本号在设置页面拉到最下面有,如果不是最新版建议更新到最新版再测试

@adrianzhang
Copy link
Author

adrianzhang commented Jul 10, 2024

感谢快速回复!版本号看了是1.5.6。看到有新版本1.5.7,打算明天试试。故障说明有误,不是超过每秒1000阈值,是每60秒1000次阈值。

重启gopeed进程后到目前为止无法复现故障。

原故障具体步骤是这样:

3月30日首次启动gopeed后就没有重启过。只用web来发布下载任务。
下载过多个bt任务,都已经完成,只剩下一个任务,卡进度到大约60~70样子,下载速率为0了。
没管这个任务,也没停,因为有时能看到下载个几百k。然后继续下载其他bt任务,任务量很大,都完成了。
到今天为止这个未完成的bt任务运行了大约有个把月。
大约一两周之前发现pi-hole告警,主机进行dns请求超过每60秒1000阈值。没空管。
今天查。
在主机上用tcpdump -nn port 53 and src host 192.168.9.88
其中主机ip是9.88, pi-hole是9.7和9.8。(双DNS)
看到高速飞过的dns请求列表。发现是gopeed干的。
到web页面暂停那个未完成bt任务。dns请求速度还是飞快。立刻杀gopeed进程。dns请求消失。
重启gopeed,web页面上看到那个未完成任务处于暂停或停止状态,只有运行按钮。此时没有大量dns请求。
运行任务,同时监控dns请求,web页面上显示从0进度下载,速度100MB/s以上。dns请求有一堆,但是比杀进程之前慢,而且到一定程度就会暂停,然后再十几秒的时候又请求一堆,再暂停。
web页一直等到进度卡住,下载速度为0。此时,dns请求也很多,但速率跟杀进程后差不多。
在web页暂停bt任务。还有一些dns请求发出,过几秒后停止了。

过了一个小时,再看dns,没有意外的dns请求了。(此时bt任务还是暂停状态)

部分域名如下:

12:18:21.778828 IP 192.168.9.88.60723 > 192.168.9.7.53: 20716+ A? open.acgnxtracker.com. (39)
12:18:21.813759 IP 192.168.9.88.60579 > 192.168.9.7.53: 41416+ AAAA? tk2.trackerservers.com. (40)
12:18:21.813837 IP 192.168.9.88.55852 > 192.168.9.7.53: 31331+ A? tk2.trackerservers.com. (40)
12:18:21.894498 IP 192.168.9.88.32987 > 192.168.9.7.53: 52711+ AAAA? www.wareztorrent.com. (38)
12:18:21.894576 IP 192.168.9.88.59806 > 192.168.9.7.53: 21225+ A? www.wareztorrent.com. (38)
12:18:21.928810 IP 192.168.9.88.53384 > 192.168.9.7.53: 20361+ AAAA? tracker.cyberia.is. (36)
12:18:21.928889 IP 192.168.9.88.33328 > 192.168.9.7.53: 65222+ A? tracker.cyberia.is. (36)
12:18:21.928961 IP 192.168.9.88.46477 > 192.168.9.7.53: 42237+ A? tracker4.itzmx.com. (36)
12:18:21.929031 IP 192.168.9.88.53177 > 192.168.9.7.53: 5604+ AAAA? tracker4.itzmx.com. (36)
12:18:21.971114 IP 192.168.9.88.42688 > 192.168.9.7.53: 42038+ A? open.u-p.pw. (29)
12:18:21.971188 IP 192.168.9.88.49383 > 192.168.9.7.53: 20783+ AAAA? open.u-p.pw. (29)
12:18:22.054527 IP 192.168.9.88.42280 > 192.168.9.7.53: 31650+ AAAA? tracker-us.silksa.co.za. (41)
12:18:22.054629 IP 192.168.9.88.58790 > 192.168.9.7.53: 54195+ A? tracker-us.silksa.co.za. (41)
12:18:22.080267 IP 192.168.9.88.57980 > 192.168.9.7.53: 27780+ AAAA? tk2v6.trackerservers.com. (42)
12:18:22.080348 IP 192.168.9.88.54955 > 192.168.9.7.53: 12740+ A? tk2v6.trackerservers.com. (42)
12:18:22.088643 IP 192.168.9.88.58962 > 192.168.9.7.53: 65381+ AAAA? open.acgnxtracker.com. (39)
12:18:22.106118 IP 192.168.9.88.53327 > 192.168.9.7.53: 34550+ A? 9.rarbg.me. (28)
12:18:22.106208 IP 192.168.9.88.43677 > 192.168.9.7.53: 49802+ AAAA? 9.rarbg.me. (28)
12:18:22.106433 IP 192.168.9.88.54581 > 192.168.9.8.53: 65381+ AAAA? open.acgnxtracker.com. (39)
12:18:22.133298 IP 192.168.9.88.56427 > 192.168.9.8.53: 30443+ AAAA? tracker.edkj.club. (35)
12:18:22.133393 IP 192.168.9.88.48147 > 192.168.9.8.53: 2633+ AAAA? odd-hd.fr. (27)
12:18:22.133479 IP 192.168.9.88.39773 > 192.168.9.8.53: 9496+ A? odd-hd.fr. (27)
12:18:22.133566 IP 192.168.9.88.35938 > 192.168.9.8.53: 25127+ A? tracker.edkj.club. (35)
12:18:22.211957 IP 192.168.9.88.43866 > 192.168.9.7.53: 65381+ AAAA? open.acgnxtracker.com. (39)
12:18:22.223213 IP 192.168.9.88.44028 > 192.168.9.7.53: 28549+ AAAA? open.acgnxtracker.com. (39)
12:18:22.223285 IP 192.168.9.88.41141 > 192.168.9.7.53: 6481+ A? open.acgnxtracker.com. (39)
12:18:22.234227 IP 192.168.9.88.52783 > 192.168.9.8.53: 28549+ AAAA? open.acgnxtracker.com. (39)
12:18:22.236960 IP 192.168.9.88.55383 > 192.168.9.8.53: 6481+ A? open.acgnxtracker.com. (39)
12:18:22.248109 IP 192.168.9.88.59752 > 192.168.9.8.53: 47107+ AAAA? open.demonoid.ch. (34)
12:18:22.248195 IP 192.168.9.88.44957 > 192.168.9.8.53: 20481+ A? open.demonoid.ch. (34)
12:18:22.251417 IP 192.168.9.88.58570 > 192.168.9.8.53: 5193+ AAAA? ttk2.nbaonlineservice.com. (43)
12:18:22.251486 IP 192.168.9.88.36937 > 192.168.9.8.53: 21467+ A? ttk2.nbaonlineservice.com. (43)
12:18:22.302555 IP 192.168.9.88.46446 > 192.168.9.8.53: 4788+ A? 9.rarbg.com. (29)
12:18:22.302627 IP 192.168.9.88.43324 > 192.168.9.8.53: 32769+ AAAA? 9.rarbg.com. (29)
12:18:22.335973 IP 192.168.9.88.36269 > 192.168.9.8.53: 21421+ AAAA? www.wareztorrent.com. (38)
12:18:22.336052 IP 192.168.9.88.35840 > 192.168.9.8.53: 31469+ A? www.wareztorrent.com. (38)
12:18:22.338322 IP 192.168.9.88.59815 > 192.168.9.7.53: 28549+ AAAA? open.acgnxtracker.com. (39)
12:18:22.350322 IP 192.168.9.88.54411 > 192.168.9.7.53: 3870+ AAAA? open.acgnxtracker.com. (39)
12:18:22.355545 IP 192.168.9.88.35698 > 192.168.9.7.53: 8194+ AAAA? bittorrent-tracker.e-n-c-r-y-p-t.net. (54)
12:18:22.355626 IP 192.168.9.88.57968 > 192.168.9.7.53: 50933+ A? bittorrent-tracker.e-n-c-r-y-p-t.net. (54)
12:18:22.364251 IP 192.168.9.88.58074 > 192.168.9.8.53: 3870+ AAAA? open.acgnxtracker.com. (39)
12:18:22.377583 IP 192.168.9.88.48708 > 192.168.9.7.53: 6481+ A? open.acgnxtracker.com. (39)
12:18:22.389763 IP 192.168.9.88.57319 > 192.168.9.7.53: 23581+ A? open.acgnxtracker.com. (39)
12:18:22.403818 IP 192.168.9.88.40529 > 192.168.9.8.53: 23581+ A? open.acgnxtracker.com. (39)
12:18:22.410394 IP 192.168.9.88.50733 > 192.168.9.8.53: 14677+ AAAA? tracker.dler.com. (34)
12:18:22.410492 IP 192.168.9.88.46522 > 192.168.9.8.53: 31887+ A? tracker.dler.com. (34)
12:18:22.453521 IP 192.168.9.88.36684 > 192.168.9.8.53: 20213+ A? ttr.croco.net. (31)
12:18:22.453600 IP 192.168.9.88.34568 > 192.168.9.8.53: 48379+ AAAA? ttr.croco.net. (31)
12:18:22.497978 IP 192.168.9.88.55369 > 192.168.9.8.53: 8010+ AAAA? ipv4.tracker.harry.lu. (39)
12:18:22.498054 IP 192.168.9.88.43734 > 192.168.9.8.53: 43531+ A? ipv4.tracker.harry.lu. (39)
12:18:22.508332 IP 192.168.9.88.52119 > 192.168.9.8.53: 41076+ AAAA? torrents.artixlinux.org. (41)
12:18:22.508426 IP 192.168.9.88.41615 > 192.168.9.8.53: 43822+ A? torrents.artixlinux.org. (41)
12:18:22.523825 IP 192.168.9.88.35824 > 192.168.9.8.53: 3218+ AAAA? wepzone.net. (29)
12:18:22.523905 IP 192.168.9.88.42432 > 192.168.9.8.53: 1357+ A? wepzone.net. (29)
12:18:22.528746 IP 192.168.9.88.45972 > 192.168.9.8.53: 45087+ AAAA? tr.abir.ga. (28)
12:18:22.528824 IP 192.168.9.88.49760 > 192.168.9.8.53: 3762+ A? tr.abir.ga. (28)
12:18:22.557462 IP 192.168.9.88.46133 > 192.168.9.7.53: 3870+ AAAA? open.acgnxtracker.com. (39)
12:18:22.571114 IP 192.168.9.88.52332 > 192.168.9.7.53: 50511+ AAAA? tracker.dler.org. (34)
12:18:22.572146 IP 192.168.9.88.46074 > 192.168.9.7.53: 65082+ AAAA? bt.ktrackers.com. (34)
12:18:22.572225 IP 192.168.9.88.54534 > 192.168.9.7.53: 18497+ A? bt.ktrackers.com. (34)
12:18:22.589301 IP 192.168.9.88.38065 > 192.168.9.7.53: 14483+ AAAA? tracker.qu.ax. (31)
12:18:22.589396 IP 192.168.9.88.34736 > 192.168.9.7.53: 9271+ A? tracker.qu.ax. (31)
12:18:22.596303 IP 192.168.9.88.51404 > 192.168.9.7.53: 23581+ A? open.acgnxtracker.com. (39)
12:18:22.605689 IP 192.168.9.88.47824 > 192.168.9.7.53: 54999+ AAAA? www.wareztorrent.com. (38)
12:18:22.605764 IP 192.168.9.88.50187 > 192.168.9.7.53: 52574+ A? www.wareztorrent.com. (38)
12:18:22.606704 IP 192.168.9.88.52002 > 192.168.9.7.53: 24934+ AAAA? open.acgnxtracker.com. (39)
12:18:22.606798 IP 192.168.9.88.49139 > 192.168.9.7.53: 14173+ A? open.acgnxtracker.com. (39)
12:18:22.612098 IP 192.168.9.88.52457 > 192.168.9.7.53: 29380+ AAAA? tk2.trackerservers.com. (40)
12:18:22.612208 IP 192.168.9.88.33203 > 192.168.9.7.53: 224+ A? tk2.trackerservers.com. (40)
12:18:22.618394 IP 192.168.9.88.36405 > 192.168.9.8.53: 24934+ AAAA? open.acgnxtracker.com. (39)
12:18:22.621646 IP 192.168.9.88.54030 > 192.168.9.8.53: 14173+ A? open.acgnxtracker.com. (39)
12:18:22.662067 IP 192.168.9.88.46873 > 192.168.9.8.53: 57545+ AAAA? tracker.cyberia.is. (36)
12:18:22.662145 IP 192.168.9.88.52493 > 192.168.9.8.53: 49779+ A? tracker.cyberia.is. (36)
12:18:22.669561 IP 192.168.9.88.60402 > 192.168.9.8.53: 663+ AAAA? www.all4nothin.net. (36)
12:18:22.669635 IP 192.168.9.88.49390 > 192.168.9.8.53: 43126+ A? www.all4nothin.net. (36)
12:18:22.701487 IP 192.168.9.88.60581 > 192.168.9.8.53: 44547+ AAAA? d40969.acod.regrucolo.ru. (42)
12:18:22.701585 IP 192.168.9.88.49591 > 192.168.9.8.53: 36339+ A? d40969.acod.regrucolo.ru. (42)
12:18:22.712800 IP 192.168.9.88.43300 > 192.168.9.8.53: 11576+ AAAA? torrust.canofsocks.com. (40)
12:18:22.712881 IP 192.168.9.88.49276 > 192.168.9.8.53: 41037+ A? torrust.canofsocks.com. (40)
12:18:22.736755 IP 192.168.9.88.54323 > 192.168.9.8.53: 48965+ AAAA? pybittrack.retiolus.net. (41)
12:18:22.736858 IP 192.168.9.88.39581 > 192.168.9.8.53: 21560+ A? pybittrack.retiolus.net. (41)
12:18:22.737905 IP 192.168.9.88.47352 > 192.168.9.8.53: 37332+ AAAA? public.tracker.vraphim.com. (44)
12:18:22.737989 IP 192.168.9.88.55148 > 192.168.9.8.53: 42609+ A? public.tracker.vraphim.com. (44)
12:18:22.765054 IP 192.168.9.88.52776 > 192.168.9.8.53: 46592+ AAAA? odysseus.artixlinux.org. (41)
12:18:22.791353 IP 192.168.9.88.51386 > 192.168.9.8.53: 54996+ AAAA? ttk2.nbaonlineservice.com. (43)
12:18:22.791430 IP 192.168.9.88.53773 > 192.168.9.8.53: 48612+ A? ttk2.nbaonlineservice.com. (43)
12:18:22.792754 IP 192.168.9.88.36477 > 192.168.9.8.53: 2213+ AAAA? opentracker.io. (32)
12:18:22.792909 IP 192.168.9.88.49136 > 192.168.9.8.53: 49429+ A? opentracker.io. (32)
12:18:22.818378 IP 192.168.9.88.55153 > 192.168.9.7.53: 14173+ A? open.acgnxtracker.com. (39)
12:18:22.818452 IP 192.168.9.88.44590 > 192.168.9.7.53: 24934+ AAAA? open.acgnxtracker.com. (39)
12:18:22.832141 IP 192.168.9.88.60744 > 192.168.9.7.53: 32895+ AAAA? open.acgnxtracker.com. (39)
12:18:22.841384 IP 192.168.9.88.60351 > 192.168.9.7.53: 12154+ AAAA? explodie.org. (30)
12:18:22.841456 IP 192.168.9.88.44550 > 192.168.9.7.53: 21603+ AAAA? jutone.com. (28)
12:18:22.841522 IP 192.168.9.88.36953 > 192.168.9.7.53: 34678+ A? explodie.org. (30)
12:18:22.841613 IP 192.168.9.88.59187 > 192.168.9.7.53: 22998+ A? jutone.com. (28)
12:18:22.842660 IP 192.168.9.88.37543 > 192.168.9.8.53: 32895+ AAAA? open.acgnxtracker.com. (39)
12:18:22.843875 IP 192.168.9.88.49685 > 192.168.9.8.53: 53292+ AAAA? tracker-us.silksa.co.za. (41)
12:18:22.843950 IP 192.168.9.88.35020 > 192.168.9.8.53: 39098+ A? tracker-us.silksa.co.za. (41)
12:18:22.851731 IP 192.168.9.88.37518 > 192.168.9.8.53: 56813+ AAAA? p4p.arenabg.com. (33)
12:18:22.851806 IP 192.168.9.88.57457 > 192.168.9.8.53: 58263+ A? p4p.arenabg.com. (33)
12:18:22.877183 IP 192.168.9.88.50287 > 192.168.9.8.53: 16130+ AAAA? bt.okmp3.ru. (29)
12:18:22.877286 IP 192.168.9.88.39222 > 192.168.9.8.53: 31591+ A? bt.okmp3.ru. (29)
12:18:22.893746 IP 192.168.9.88.53190 > 192.168.9.8.53: 5189+ AAAA? tk2v6.trackerservers.com. (42)
12:18:22.893849 IP 192.168.9.88.43853 > 192.168.9.8.53: 14240+ A? tk2v6.trackerservers.com. (42)
12:18:22.902139 IP 192.168.9.88.39958 > 192.168.9.8.53: 29698+ AAAA? 9.rarbg.me. (28)
12:18:22.902267 IP 192.168.9.88.48974 > 192.168.9.8.53: 42523+ A? 9.rarbg.me. (28)
12:18:22.918450 IP 192.168.9.88.37691 > 192.168.9.8.53: 34952+ A? tracker.dler.org. (34)
12:18:22.918524 IP 192.168.9.88.60769 > 192.168.9.8.53: 27854+ AAAA? tracker.dler.org. (34)
12:18:22.927779 IP 192.168.9.88.35888 > 192.168.9.8.53: 31087+ AAAA? www.wareztorrent.com. (38)
12:18:22.927969 IP 192.168.9.88.58887 > 192.168.9.8.53: 36149+ A? www.wareztorrent.com. (38)
12:18:22.958898 IP 192.168.9.88.56502 > 192.168.9.8.53: 32519+ AAAA? open.publictracker.xyz. (40)
12:18:22.958980 IP 192.168.9.88.51234 > 192.168.9.8.53: 10358+ A? open.publictracker.xyz. (40)
12:18:22.998770 IP 192.168.9.88.33448 > 192.168.9.8.53: 54572+ AAAA? 9.rarbg.to. (28)
12:18:22.998959 IP 192.168.9.88.41685 > 192.168.9.8.53: 11665+ A? 9.rarbg.to. (28)
12:18:23.022796 IP 192.168.9.88.38467 > 192.168.9.8.53: 3640+ A? retracker.akado-ural.ru. (41)
12:18:23.022877 IP 192.168.9.88.59438 > 192.168.9.8.53: 17675+ AAAA? retracker.akado-ural.ru. (41)
12:18:23.049831 IP 192.168.9.88.40627 > 192.168.9.8.53: 15462+ A? tracker.ddunlimited.net. (41)
12:18:23.049910 IP 192.168.9.88.50873 > 192.168.9.8.53: 33587+ AAAA? tracker.ddunlimited.net. (41)
12:18:23.053797 IP 192.168.9.88.59602 > 192.168.9.8.53: 20675+ A? u6.trakx.crim.ist. (35)
12:18:23.053900 IP 192.168.9.88.50799 > 192.168.9.8.53: 20648+ AAAA? u6.trakx.crim.ist. (35)
12:18:23.073966 IP 192.168.9.88.35784 > 192.168.9.8.53: 37690+ AAAA? opentracker.io. (32)
12:18:23.133294 IP 192.168.9.88.47310 > 192.168.9.8.53: 14968+ A? 9.rarbg.com. (29)
12:18:23.133407 IP 192.168.9.88.49120 > 192.168.9.8.53: 25318+ AAAA? 9.rarbg.com. (29)
12:18:23.165729 IP 192.168.9.88.34724 > 192.168.9.8.53: 44432+ A? tracker.gmi.gd. (32)
12:18:23.165824 IP 192.168.9.88.39862 > 192.168.9.8.53: 26851+ AAAA? tracker.gmi.gd. (32)
12:18:23.184566 IP 192.168.9.88.40421 > 192.168.9.8.53: 61029+ AAAA? retracker.lanta-net.ru. (40)
12:18:23.184666 IP 192.168.9.88.37705 > 192.168.9.8.53: 15926+ A? retracker.lanta-net.ru. (40)
12:18:23.229051 IP 192.168.9.88.38185 > 192.168.9.8.53: 19647+ AAAA? tracker.nyap2p.com. (36)
12:18:23.229162 IP 192.168.9.88.45999 > 192.168.9.8.53: 14539+ A? tracker.nyap2p.com. (36)
12:18:23.231758 IP 192.168.9.88.43315 > 192.168.9.8.53: 62597+ AAAA? seedpeer.net. (30)
12:18:23.231838 IP 192.168.9.88.46684 > 192.168.9.8.53: 62890+ A? seedpeer.net. (30)
12:18:23.236107 IP 192.168.9.88.39283 > 192.168.9.8.53: 62451+ AAAA? d40969.acod.regrucolo.ru. (42)
12:18:23.262151 IP 192.168.9.88.35504 > 192.168.9.8.53: 26418+ AAAA? tracker1.myporn.club. (38)
12:18:23.262233 IP 192.168.9.88.32894 > 192.168.9.8.53: 15704+ A? tracker1.myporn.club. (38)
12:18:23.276454 IP 192.168.9.88.41227 > 192.168.9.8.53: 13457+ A? tracker.farted.net. (36)
12:18:23.276533 IP 192.168.9.88.54068 > 192.168.9.8.53: 14054+ AAAA? tracker.farted.net. (36)
12:18:23.375695 IP 192.168.9.88.39562 > 192.168.9.8.53: 19104+ A? retracker.netbynet.ru. (39)
12:18:23.375795 IP 192.168.9.88.57995 > 192.168.9.8.53: 37720+ AAAA? retracker.netbynet.ru. (39)
12:18:23.401480 IP 192.168.9.88.37893 > 192.168.9.8.53: 27118+ AAAA? bittorrent-tracker.e-n-c-r-y-p-t.net. (54)
12:18:23.401576 IP 192.168.9.88.56928 > 192.168.9.8.53: 45421+ A? bittorrent-tracker.e-n-c-r-y-p-t.net. (54)
12:18:23.426433 IP 192.168.9.88.49325 > 192.168.9.8.53: 15070+ AAAA? wepzone.net. (29)
12:18:23.426506 IP 192.168.9.88.53402 > 192.168.9.8.53: 20671+ A? wepzone.net. (29)
12:18:23.502620 IP 192.168.9.88.55537 > 192.168.9.8.53: 19759+ AAAA? tk2.trackerservers.com. (40)
12:18:23.502694 IP 192.168.9.88.40239 > 192.168.9.8.53: 57313+ A? tk2.trackerservers.com. (40)
12:18:23.528024 IP 192.168.9.88.34288 > 192.168.9.8.53: 25202+ AAAA? ec2-18-191-163-220.us-east-2.compute.amazonaws.com. (68)
12:18:23.528259 IP 192.168.9.88.55060 > 192.168.9.8.53: 43610+ A? ec2-18-191-163-220.us-east-2.compute.amazonaws.com. (68)
12:18:23.556335 IP 192.168.9.88.44054 > 192.168.9.8.53: 63341+ A? t1.aag.moe. (28)
12:18:23.556416 IP 192.168.9.88.45640 > 192.168.9.8.53: 8089+ AAAA? t1.aag.moe. (28)
12:18:23.566663 IP 192.168.9.88.48380 > 192.168.9.8.53: 56309+ A? 9.rarbg.com. (29)
12:18:23.566739 IP 192.168.9.88.52585 > 192.168.9.8.53: 17249+ AAAA? 9.rarbg.com. (29)
12:18:23.577654 IP 192.168.9.88.58853 > 192.168.9.8.53: 52615+ AAAA? retracker01-msk-virt.corbina.net. (50)
12:18:23.577733 IP 192.168.9.88.46900 > 192.168.9.8.53: 61115+ A? retracker01-msk-virt.corbina.net. (50)
12:18:23.602673 IP 192.168.9.88.33332 > 192.168.9.8.53: 9486+ AAAA? tracker2.itzmx.com. (36)
12:18:23.602749 IP 192.168.9.88.60497 > 192.168.9.8.53: 50240+ A? tracker2.itzmx.com. (36)
12:18:23.629778 IP 192.168.9.88.35305 > 192.168.9.8.53: 2494+ AAAA? ttk2.nbaonlineservice.com. (43)
12:18:23.653002 IP 192.168.9.88.34057 > 192.168.9.8.53: 64206+ AAAA? 1c.premierzal.ru. (34)
12:18:23.653098 IP 192.168.9.88.33984 > 192.168.9.8.53: 29498+ A? 1c.premierzal.ru. (34)
12:18:23.674703 IP 192.168.9.88.34842 > 192.168.9.8.53: 25777+ AAAA? www.wareztorrent.com. (38)
12:18:23.751833 IP 192.168.9.88.56282 > 192.168.9.8.53: 2976+ AAAA? jutone.com. (28)
12:18:23.767052 IP 192.168.9.88.50303 > 192.168.9.8.53: 30240+ AAAA? opentracker.io. (32)
12:18:23.802967 IP 192.168.9.88.34874 > 192.168.9.8.53: 14639+ AAAA? p4p.arenabg.com. (33)
12:18:23.803049 IP 192.168.9.88.52824 > 192.168.9.8.53: 7577+ AAAA? bubu.mapfactor.com. (36)
12:18:23.803120 IP 192.168.9.88.42309 > 192.168.9.8.53: 12382+ A? bubu.mapfactor.com. (36)
12:18:23.810767 IP 192.168.9.88.56672 > 192.168.9.8.53: 22858+ AAAA? leet-tracker.moe. (34)
12:18:23.810842 IP 192.168.9.88.56317 > 192.168.9.8.53: 42279+ A? leet-tracker.moe. (34)
12:18:23.815041 IP 192.168.9.88.38865 > 192.168.9.8.53: 347+ AAAA? seedpeer.net. (30)
12:18:23.828577 IP 192.168.9.88.60565 > 192.168.9.8.53: 11113+ AAAA? tracker.silksa.co.za. (38)
12:18:23.828651 IP 192.168.9.88.59492 > 192.168.9.8.53: 42716+ A? tracker.silksa.co.za. (38)
12:18:23.854119 IP 192.168.9.88.57159 > 192.168.9.8.53: 57021+ A? tracker.dler.com. (34)
12:18:23.854194 IP 192.168.9.88.57870 > 192.168.9.8.53: 54539+ AAAA? tracker.dler.com. (34)
12:18:23.855302 IP 192.168.9.88.56263 > 192.168.9.8.53: 18371+ AAAA? trackers.run. (30)
12:18:23.855396 IP 192.168.9.88.58708 > 192.168.9.8.53: 46404+ A? trackers.run. (30)
12:18:23.879261 IP 192.168.9.88.54406 > 192.168.9.8.53: 13835+ A? tracker.darkness.services. (43)
12:18:23.879344 IP 192.168.9.88.52354 > 192.168.9.8.53: 39521+ AAAA? tracker.darkness.services. (43)
12:18:23.904920 IP 192.168.9.88.60133 > 192.168.9.8.53: 40131+ AAAA? new-line.net. (30)
12:18:23.905017 IP 192.168.9.88.38625 > 192.168.9.8.53: 10243+ A? new-line.net. (30)
12:18:23.907458 IP 192.168.9.88.37273 > 192.168.9.8.53: 51892+ AAAA? trackers.mlsub.net. (36)
12:18:23.907529 IP 192.168.9.88.52940 > 192.168.9.8.53: 28416+ A? trackers.mlsub.net. (36)
12:18:23.944517 IP 192.168.9.88.43360 > 192.168.9.8.53: 64431+ AAAA? ttr.croco.net. (31)
12:18:23.944619 IP 192.168.9.88.54694 > 192.168.9.8.53: 5482+ A? ttr.croco.net. (31)
12:18:23.967720 IP 192.168.9.88.52699 > 192.168.9.8.53: 58003+ AAAA? u.peer-exchange.download. (42)
12:18:23.967824 IP 192.168.9.88.53031 > 192.168.9.8.53: 42480+ A? u.peer-exchange.download. (42)
12:18:23.976762 IP 192.168.9.88.45158 > 192.168.9.8.53: 62470+ A? open.acgnxtracker.com. (39)
12:18:23.984315 IP 192.168.9.88.42957 > 192.168.9.8.53: 42087+ AAAA? open.dstud.io. (31)
12:18:23.984414 IP 192.168.9.88.34262 > 192.168.9.8.53: 47410+ A? open.dstud.io. (31)
12:18:23.994770 IP 192.168.9.88.44118 > 192.168.9.8.53: 14294+ A? retracker.hotplug.ru. (38)
12:18:23.994858 IP 192.168.9.88.36922 > 192.168.9.8.53: 32688+ AAAA? retracker.hotplug.ru. (38)
12:18:23.996995 IP 192.168.9.88.49737 > 192.168.9.8.53: 61287+ AAAA? tk2.trackerservers.com. (40)
12:18:24.009147 IP 192.168.9.88.55483 > 192.168.9.8.53: 39397+ AAAA? z.mercax.com. (30)
12:18:24.009245 IP 192.168.9.88.60279 > 192.168.9.8.53: 48320+ A? z.mercax.com. (30)
12:18:24.023894 IP 192.168.9.88.54691 > 192.168.9.8.53: 7428+ AAAA? wepzone.net. (29)
12:18:24.034745 IP 192.168.9.88.53270 > 192.168.9.8.53: 61766+ AAAA? odd-hd.fr. (27)
12:18:24.034842 IP 192.168.9.88.43375 > 192.168.9.8.53: 26725+ A? odd-hd.fr. (27)
12:18:24.046123 IP 192.168.9.88.54987 > 192.168.9.8.53: 21886+ AAAA? tracker.files.fm. (34)
12:18:24.046224 IP 192.168.9.88.46318 > 192.168.9.8.53: 13379+ A? tracker.files.fm. (34)
12:18:24.060419 IP 192.168.9.88.55427 > 192.168.9.8.53: 37511+ A? tk2v6.trackerservers.com. (42)
12:18:24.074364 IP 192.168.9.88.49520 > 192.168.9.8.53: 33941+ AAAA? bittorrent-tracker.e-n-c-r-y-p-t.net. (54)
12:18:24.125845 IP 192.168.9.88.51989 > 192.168.9.8.53: 35164+ AAAA? na.cdn.aag.moe. (32)
12:18:24.150346 IP 192.168.9.88.38373 > 192.168.9.8.53: 24311+ AAAA? torrust.canofsocks.com. (40)
12:18:24.150425 IP 192.168.9.88.34164 > 192.168.9.8.53: 60396+ A? torrust.canofsocks.com. (40)
12:18:24.240163 IP 192.168.9.88.38909 > 192.168.9.8.53: 5155+ AAAA? oh.fuuuuuck.com. (33)
12:18:24.240244 IP 192.168.9.88.42277 > 192.168.9.8.53: 59374+ A? oh.fuuuuuck.com. (33)
12:18:24.266674 IP 192.168.9.88.40605 > 192.168.9.8.53: 49412+ AAAA? tracker.farted.net. (36)
12:18:24.287439 IP 192.168.9.88.52712 > 192.168.9.8.53: 33734+ AAAA? tk.greedland.net. (34)
12:18:24.287532 IP 192.168.9.88.40999 > 192.168.9.8.53: 19648+ A? tk.greedland.net. (34)
12:18:24.290993 IP 192.168.9.88.40960 > 192.168.9.8.53: 55367+ AAAA? open.publictracker.xyz. (40)
12:18:24.308684 IP 192.168.9.88.49648 > 192.168.9.8.53: 61565+ A? tracker.dump.cl. (33)
12:18:24.308759 IP 192.168.9.88.58853 > 192.168.9.8.53: 21382+ AAAA? tracker.dump.cl. (33)
12:18:24.317917 IP 192.168.9.88.56726 > 192.168.9.8.53: 23777+ AAAA? tracker.opentrackr.org. (40)
12:18:24.317987 IP 192.168.9.88.34686 > 192.168.9.8.53: 33239+ AAAA? amigacity.xyz. (31)
12:18:24.318056 IP 192.168.9.88.47386 > 192.168.9.8.53: 791+ A? tracker.opentrackr.org. (40)
12:18:24.318116 IP 192.168.9.88.47875 > 192.168.9.8.53: 26001+ A? amigacity.xyz. (31)
12:18:24.320223 IP 192.168.9.88.58789 > 192.168.9.8.53: 10499+ AAAA? tracker.lilithraws.org. (40)
12:18:24.320295 IP 192.168.9.88.43307 > 192.168.9.8.53: 32846+ A? tracker.lilithraws.org. (40)
12:18:24.325946 IP 192.168.9.88.48107 > 192.168.9.8.53: 28865+ AAAA? tracker.edkj.club. (35)
12:18:24.326022 IP 192.168.9.88.39727 > 192.168.9.8.53: 54935+ A? tracker.edkj.club. (35)
12:18:24.329365 IP 192.168.9.88.53929 > 192.168.9.8.53: 58183+ AAAA? tracker.jamesthebard.net. (42)
12:18:24.329474 IP 192.168.9.88.60594 > 192.168.9.8.53: 59567+ A? tracker.jamesthebard.net. (42)
12:18:24.343728 IP 192.168.9.88.37633 > 192.168.9.8.53: 7967+ AAAA? ec2-18-191-163-220.us-east-2.compute.amazonaws.com. (68)
12:18:24.343904 IP 192.168.9.88.33107 > 192.168.9.8.53: 36366+ A? open.demonoid.ch. (34)
12:18:24.344026 IP 192.168.9.88.37672 > 192.168.9.8.53: 51347+ AAAA? open.demonoid.ch. (34)

@monkeyWie
Copy link
Member

原因应该已经定位了,大量的DNS请求是正常的因为一直在traker,问题的关键就在于DNS请求没有走缓存,把缓存问题解决了就行了。

参考:

@adrianzhang
Copy link
Author

adrianzhang commented Jul 11, 2024

原因应该已经定位了,大量的DNS请求是正常的因为一直在traker,问题的关键就在于DNS请求没有走缓存,把缓存问题解决了就行了。

参考:

Gopeed自己缓存dns会带来什么问题吗?如果没有的话,最好还是改一下。原因如下:
1)如果用户只使用默认dhcp,dns服务器可能是无线路由器也可能是猫,那么就要求这两种设备带缓存,如果没有,将导致大量的,对isp边缘dns服务器的请求,假如发生dns禁止某些解析的情况,随着gopeed用户量增大,有可能会造成类似上次暴风导致全国断网的事故
2)如果用户使用DoH或梯子,将会造成大量的对外tcp请求,这对整个链路资源造成巨大压力,且暴露梯子。

@adrianzhang
Copy link
Author

还有就是可能进度卡住以后,疯狂寻找可用节点,因此发生超高速dns查询,每个查询都是不同域名。不知道这个猜测对不对,需要回看pihole日志进行分析,这个日志有7个多GB,如果你需要,可以提供给你。

@monkeyWie
Copy link
Member

monkeyWie commented Jul 11, 2024

golang默认是使用的系统的DNS解析,一般来说呢是会有缓存的(取决于系统的实现),但是我构建web版的时候把CGO禁用掉了,导致golang使用了自己标准库里的DNS解析器,就没有缓存了,等我修复下构建脚本就行了,当时主要是为了方便交叉编译

@adrianzhang
Copy link
Author

golang默认是使用的系统的DNS解析,一般来说呢是会有缓存的(取决于系统的实现),但是我构建web版的时候把CGO禁用掉了,导致golang使用了自己标准库里的DNS解析器,就没有缓存了,等我修复下构建脚本就行了,当时主要是为了方便交叉编译

好的谢谢!

另外我想了想,会不会已完成的任务也会造成dns请求。如果是,那么故障就说得通了。

@monkeyWie
Copy link
Member

另外我想了想,会不会已完成的任务也会造成dns请求。如果是,那么故障就说得通了。

这个bug确实存在,有人也反馈过,我一起看看吧

@monkeyWie monkeyWie added this to the v1.5.8 milestone Jul 11, 2024
@monkeyWie monkeyWie added bug Something isn't working perf Performance optimization and removed bug Something isn't working labels Jul 11, 2024
@adrianzhang
Copy link
Author

另外我想了想,会不会已完成的任务也会造成dns请求。如果是,那么故障就说得通了。

这个bug确实存在,有人也反馈过,我一起看看吧

好的。谢谢!

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

No branches or pull requests

2 participants