Limit the rate of DNS queries #16560

Open
opened 2026-02-22 03:13:36 -05:00 by deekerman · 5 comments
Owner

Originally created by @Bu11etmagnet on GitHub (Jan 23, 2025).

Suggestion

When qBittorrent starts and loads a large number of torrents, it will generate a large number of DNS queries very quickly (thousands per second). Some DNS servers (e.g. Pi-hole) have a rate limiting feature, and may start to throttle the computer's DNS queries (refuse to answer) as a result. In one case this resulted in 45 minutes of no DNS queries answered.
It would be nice if there was a possibility to limit the rate of DNS queries. This could be implemented with a queue, where a thread would retrieve queries at a set rate from the queue and send them out to the DNS server. This could result in delaying the start of downloading and seeding, because until a tracker's DNS name is resolved, it can't be contacted.

Use case

Limit the rate of DNS queries (especially at startup) to avoid triggering DNS servers with rate limit enforcement.

Extra info/examples/attachments

Pi-hole rate limit documentation

Originally created by @Bu11etmagnet on GitHub (Jan 23, 2025). ### Suggestion When qBittorrent starts and loads a large number of torrents, it will generate a large number of DNS queries very quickly (thousands per second). Some DNS servers (e.g. Pi-hole) have a rate limiting feature, and may start to throttle the computer's DNS queries (refuse to answer) as a result. In one case this resulted in 45 minutes of no DNS queries answered. It would be nice if there was a possibility to limit the rate of DNS queries. This could be implemented with a queue, where a thread would retrieve queries at a set rate from the queue and send them out to the DNS server. This could result in delaying the start of downloading and seeding, because until a tracker's DNS name is resolved, it can't be contacted. ### Use case Limit the rate of DNS queries (especially at startup) to avoid triggering DNS servers with rate limit enforcement. ### Extra info/examples/attachments [Pi-hole rate limit documentation](https://docs.pi-hole.net/ftldns/configfile/#rate_limit)
Author
Owner

@stalkerok commented on GitHub (Jan 24, 2025):

Max http announces in advanced settings

@stalkerok commented on GitHub (Jan 24, 2025): Max http announces in advanced settings
Author
Owner

@xavier2k6 commented on GitHub (May 25, 2025):

ANNOUNCEMENT!

For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:

  1. Please select/click the 👍 &/orreactions in the original/opening post of this ticket.

  2. Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
    (new/existing contributors/developers are always welcome)


DO:

  • Provide constructive feedback.
  • Display how other projects implemented same/similar etc.

DO NOT:

  • Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s).
    (These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)
@xavier2k6 commented on GitHub (May 25, 2025): ## ANNOUNCEMENT! For anybody coming across this **_"Feature Request"_** & would like/love to see a potential implementation in the future! **Here are some options available to you:** 1. Please select/click the 👍 **&/or** ❤ `reactions` in the original/opening post of this ticket. 2. Please feel free _(If you have the "skillset")_ to create a **_"Pull Request"_** implementing what's being requested in this ticket. **_(new/existing contributors/developers are always welcome)_** ____ **DO:** * Provide constructive feedback. * Display how other projects implemented same/similar etc. **DO NOT:** * Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s). **(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)**
Author
Owner

@SignFinder commented on GitHub (Nov 4, 2025):

Good idea. Sometimes qbittorrent-nox generates huge amount of dns queries and router stops working.

@SignFinder commented on GitHub (Nov 4, 2025): Good idea. Sometimes qbittorrent-nox generates huge amount of dns queries and router stops working.
Author
Owner

@wolfsilver00 commented on GitHub (Jan 9, 2026):

Im finding this issue with qbittorrent-nox too. Using my self-hosted DNS I can see that it spams queries for all trackers constantly, at least once a second

@wolfsilver00 commented on GitHub (Jan 9, 2026): Im finding this issue with qbittorrent-nox too. Using my self-hosted DNS I can see that it spams queries for all trackers constantly, at least once a second
Author
Owner

@SignFinder commented on GitHub (Jan 28, 2026):

Let me share more might useful information.

  1. qBittorrent-nox 5.1.4
  2. Max concurrent http announces = 50 (default) https://www.libtorrent.org/reference-Settings.html#max_concurrent_http_announces
  3. Always announce to all trackers in a tier and Always announce to all tiers are disabled https://www.libtorrent.org/reference-Settings.html#announce_to_all_trackers
  4. Resolve peer host countries and resolve peer host names (non-existing in UI) added via config - added
    Connection\ResolvePeerCountries=false
    Connection\ResolvePeerHostNames=false
    But uploaded torrents sometimes generate a large amount to DNS server.
    For example - quad9 public dns server limits DNS queries when ~30+ active torrents are in upload state
@SignFinder commented on GitHub (Jan 28, 2026): Let me share more might useful information. 1. qBittorrent-nox 5.1.4 2. Max concurrent http announces = 50 (default) https://www.libtorrent.org/reference-Settings.html#max_concurrent_http_announces 3. Always announce to all trackers in a tier and Always announce to all tiers are disabled https://www.libtorrent.org/reference-Settings.html#announce_to_all_trackers 4. Resolve peer host countries and resolve peer host names (non-existing in UI) added via config - added Connection\ResolvePeerCountries=false Connection\ResolvePeerHostNames=false But uploaded torrents sometimes generate a large amount to DNS server. For example - quad9 public dns server limits DNS queries when ~30+ active torrents are in upload state
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#16560
No description provided.