0

We're developing a VPN app.

By default private DNS is set to automatic what makes problem with routing by our application.

We can ask user disable private DNS manually, but this's not the best UX

enter image description here

Question: How disable private DNS programmatically?

Tried to find solution in StackOverFlow, but there's only explanation of changing static_dns, which we don't need to change. May be, there're in Settings.System some methods to disable private DNS?

android.provider.Settings.System.putString(contentResolver, Settings.System.WIFI_STATIC_DNS1, "<ip>")

0 Answers0