How to run pi.hole on-device android via on-device vpn

Has anyone done this?

I know some people vpn to their home network to use their home pi.hole, but for network stability reasons, i don't think this is a good idea (i do have a pi.hole running on my home network tho).

It's also possible that someone may want an isolated device blocking ads/trackers/etc.

I know Android, by default, does some silly things with DNS, so that Google can maintain ad revenue. But we can subvert this by requiring a VPN with killswitch. But!, we don't need a VPN to be hosted by an external service -- we can run the VPN server on the Android device, and the VPN, since it's intercepting all requests, could also utilize pi.hole (on the same device), before finally sending the request out of the phone.

Has anyone done this?
Seems like it'd be a nice thing to package is to an APK, as well.

Information i've found so far:

Requires root:

Related, but ultimately treating the android device as a server instead of the main device:

Requires separate server:

Common problem:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.