Android allows now to set "private DNS" in the settings (which also allows using DNS over TLS - sadly over HTTPS atm only works for specific DNS providers).
What I am trying to establish is: if I set private DNS and use VPN at the same time, will the DNS queries go through VPN connection - aka will the DNS service only receive the IP of the VPN node I am connected to.
Tried using AdGuard DNS as private DNS with VPN on. In this case I could see in AdGuard logs that the IP was indeed the IP coming from VPN (not my actual IP).
The test I did would suggest that indeed the DNS queries are going through VPN. Which would also make sense as I did use the option to block connections without VPN. But would like to see if anybody can confirm that this is always the case.
With regards to version of Android - let's say we are talking only about 13 (with January 1, 2023 security patch version).