You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, the setprop seem to be able to define the dns because getprop (and your app) show my custom dns, I dunno if there's a command on android to make sure of the dns used like dig on linux
The properties are correctly set in most cases, but that does not ensure that these values are really used by Android.
dig is not working on Android but if you search on the web, there are some apps that should do the same (didn't try).
What I did to test is set the DNS servers to those of OpenDNS, and go to https://www.opendns.com/welcome/. The problem is that your browser (in my case, Firefox) may cache DNS requests, so you probably will have to kill it first.
Edit: you can also watch the DNS traffic by running tcpdump udp port 53 in a shell.
It seems like the
setprop
method was replaced by thendc
method in recent versions of Android (Kit Kat?).You can find a list of valid
ndc
commands in the wiki.The text was updated successfully, but these errors were encountered: