When AdGuard VPN is connected in integrated mode with AdGuard Ad Blocker using DNS protection (with AdGuard DNS), the DNS location closest to the user is used, instead of the DNS location closest to the set VPN location.
When AdGuard VPN is used in general mode using the same AdGuard DNS address, the location closest to the selected VPN server is used.
What should happen is that the DNS location closest to the VPN location should be used.
What is actually happening is that the DNS server location closest to the user is being used, leaking the users location.
Steps to reproduce incorrect behaviour
- Set AdGuard Ad Blocker DNS protection to ENABLED
- Set DNS server to AdGuard DNS in AdGuard Ad Blocker
- Set AdGuard VPN mode to integrated to use AdGuard Ad Blocker's DNS
- Set AdGuard VPN location to any location that isn't near your location (in my case, the US)
- Browse to https://www.dnsleaktest.com, and IP of VPN location will be shown
- Start standard test, and DNS location closest to user will be shown


When AdGuard VPN is connected in integrated mode with AdGuard Ad Blocker using DNS protection (with AdGuard DNS), the DNS location closest to the user is used, instead of the DNS location closest to the set VPN location.
When AdGuard VPN is used in general mode using the same AdGuard DNS address, the location closest to the selected VPN server is used.
What should happen is that the DNS location closest to the VPN location should be used.
What is actually happening is that the DNS server location closest to the user is being used, leaking the users location.
Steps to reproduce incorrect behaviour