I'm currently renting a server where I installed PiHole and PiVPN. PiHole is a DNS sinkhole that I use for blocking ads, and the PiVPN allows all my devices thanks to OpenVPN to get all my traffic through a personal VPN to reach my PiHole.
On PC it's great, even for laptops, because battery life is enough to support the "keepalive packets" that allow OpenVPN to stay connected to my server even if I'm not using the internet directly.
However, on Android, it's the main problem, since I'm using a VPN 24/7, and my battery is melting like snow in the sun. So the question is the following: How can I set up an internal VPN that redirects DNS queries to my PiHole (my server got an IP address that corresponds to my personal DNS-PiHole)?
I know some applications can work like "that", like AdAway (for non-root smartphones) or NetGuard.
I'm by the way rooted, and already using AdAway which is making the job, but it's more for technical challenge battery management.
dnscrypt
on the device than relying on VPN. – Irfan Latif Mar 15 '21 at 14:10