2 ms·
'dns quota'? Are you trying to use an abacus as your DNS server? Torrents typically don't do more than a few thousand DNS lookups - which isn't much more tha
by londons_explore 4y ago
'dns quota'? Are you trying to use an abacus as your DNS server?
Torrents typically don't do more than a few thousand DNS lookups - which isn't much more than a few people browsing the web.
And most of those lookups are just for showing pretty flags and country codes in the UI, and aren't needed anyway.
- ksec 4y agoI dont know but transmission 3.0 era uses 200K+ DNS lookup with about 30 active torrent in a space of two to three weeks. I dont think I ever got to the bottom of it.
- londons_explore 4y agoThats like 1 per second. Which isn't really much. Thats probably 1 per person who connects or tries to connect to your machine.
- oefrha 4y agoA BT client doesn’t need to do DNS resolution for peers, since peers are bare IP addresses. It does need to resolve DNS for tracker domains when periodically announcing, and a public torrent can have a lot of trackers. Those add up if tracker domains have low TTL, I suppose.
- londons_explore 4y agoMost BT clients do do a lookup of IP addresses. Many do it to provide little flags in the UI to say which country a user is from. Some also use the results as part of an algorithm to ban bad clients (if all clients from the same ISP are sending bad data, ban the whole ISP).
- oefrha 4y agoTransmission (or at least the official clients I have personally used) doesn't show country of a peer. Plus you can't determine the country of an IP by DNS, unless your geoip provider happens to be DNS-based; what you need is a geoip database.
- londons_explore 4y agoCountry is normally determined by doing a reverse DNS lookup, and then looking at the country code in the domain name. It's not very accurate, but you can do it for free without relying on any third party service or database. Here is the libtorrent code that does it for every peer: https://github.com/arvidn/libtorrent/blob/8786d17e59c90aee2cb66db891d3a16c7f369ad7/src/torrent.cpp#L3496 https://github.com/arvidn/libtorrent/blob/8786d17e59c90aee2c...
- oefrha 4y agoWell, at least some clients use a geoip database, e.g. qBittorrent: https://github.com/qbittorrent/qBittorrent/blob/2ef059807afc4eee6e1a528d45cabfbdd12fcd2f/src/base/net/geoipmanager.cpp#L46 https://github.com/qbittorrent/qBittorrent/blob/2ef059807afc...
- archi42 4y ago200k queries in two weeks? That's not a lot. For waking hours and with someone surfing the web, my pihole reports about 1000/10m. That's 1.6/s. Also, why would you have a DNS quota? I guess some DNS blocker service like NextDNS? Either pay them the money, put a local cache on your torrent client (or use a pihole with blocklists), or have the machine with the torrent client use another DNS server.