bparmentier / DNSSetter

Set custom DNS servers on Android (not maintained at the moment!)
Other
36 stars 9 forks source link

setprop method is not working #6

Open bparmentier opened 8 years ago

bparmentier commented 8 years ago

It seems like the setprop method was replaced by the ndc method in recent versions of Android (Kit Kat?).

You can find a list of valid ndc commands in the wiki.

bparmentier commented 8 years ago

In response to @fullinterest in #1:

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.