Home:ALL Converter>How to change the DNS of an Android device programatically with a VPN?

How to change the DNS of an Android device programatically with a VPN?

Ask Time:2017-11-13T03:07:46         Author:user8929177

Json Formatter

I'm making a DNS changer app to learn some beginner stuff, and I can't figure out a way to change the device DNS server programmatically. I tried to search in android documentation and Googling, but I didn't found anything.

I thought of creating a local VPN that will use the chosen DNS, but I still don't know how to do it.

Author:user8929177,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47252764/how-to-change-the-dns-of-an-android-device-programatically-with-a-vpn
yy