AdguardTeam / AdGuardDNS

Public DNS resolver that protects you from ad trackers
https://adguard-dns.io/
GNU Affero General Public License v3.0
777 stars 60 forks source link

Allow the user to send their real subnet for ECS #649

Closed trmdi closed 1 year ago

trmdi commented 1 year ago

Issue Details

Currently Adguard DNS uses an anonymized subnet for ECS which may be inaccurate in some countries. For example in Vietnam, if Adguard uses an subnet in HCM which tells the upstream DNS server to prefer to return servers near HCM/Singapore, while servers in HN/Hongkong are better if you are in Hanoi. (map: https://www.mapcustomizer.com/map/hn-hcm-hk-sgp)

Proposed solution

Could you make this optional, something like this: Screenshot 2023-08-12 102934 (captured from nextDNS's website)

ameshkov commented 1 year ago

Note, that NextDNS does not send your real ECS, it tries to anonymize it using the way that's very similar to ours.

We use different approaches to improve cache efficiency though. They only enable ECS for a "whitelist" of domains, and we use a limited set of AS numbers instead. We'll publish an article with a more detailed explanation.

Anyways, I suggest you trying again, we made some improvements recently.

The last issue to solve with our anonymization algorithm is big providers in large countries, once we solve it everyone will be happy.