DNS switch

DNS switch

5,000 - 10,000 downloads

Add this app to your lists
View bigger - DNS switch for Android screenshot
View bigger - DNS switch for Android screenshot
View bigger - DNS switch for Android screenshot
View bigger - DNS switch for Android screenshot
Changes the DNS server setting on ROOTED Android devices.
Activate 'set DNS' in the settings screen, enter your DNS servers and reconnect. That's it! :-)

IMPORTANT: check in advance if DNSwitch works on your device with this terminal command -- it sets your DNS to google's; to get rid of it, simply reconnect:
su -c "setprop net.dns1 8.8.8.8"

Features in a nutshell:
( ) ad-free
( ) simple, clean interface
( ) works with mobile data, WiFi/WLAN, Bluetooth/USB tethering
( ) IPv6 support (work in progress)
( ) optional notification, needs no root:
-- network type (3G, WiFi, etc.) and DNS setting at connect
-- when data net connectivity has been lost
( ) root/su permission checker

Please rate, also always happy about constructive reviews!

Just for the record :-)
ONE HALF OF ALL ACTIVE DNS SWITCH INSTALLS ARE ON 4.3 / 4.4 (the bigger share being kitkat).

See above how to check if DNSwitch works on your device!

If this fails you should post a bug report to your android ROM developer. Keeping me up to date on this and other MOD issues with DNSwitch is very welcome, but there's not much I can do about it for now. Please always name the device and ROM/MOD version when contacting me.

Without feedback I assume some reviews come from the frustration of flashing premature custom ROMs. I also got reports pointing at a buggy version of the terminal app.

More detailed description:

* Overriding your network DNS settings can be useful if your wifi box isn't properly configured or your network provider's services are slow with translating an address like www.example.com into a server address. In such configurations DNSwitch can simply save your day. :-)

* Check 'notify on state change' if you want to get infos about your current DNS and connectivity state. Receiving notification on the current DNS setting without checking 'set DNS' may help to test your device for proper configuration and/or if it receives correct settings from your network. This feature works on devices without root.

* You need to have root privileges on your device to alter your DNS settings. To do so DNSwitch internally calls the program 'su'. Upon setup in the app's settings screen and at your first network reconnect some app named 'superuser' or similar should pop up asking you to grant access to su for DNSwitch. If you don't grant this root access then DNSwitch won't work.

* Examples of publicly available and reliable DNS servers at the time of this writing are (ready for copy'n'paste into the DNSwitch settings):
Google Public DNS: 8.8.8.8,8.8.4.4
Open DNS services: 208.67.222.222,208.67.220.220

*** Please support this... and become a fan! ***

Did this app improve your life and you want to support this effort? Then come back, get DNSwitch Fan edition and help keeping this app add-free! The Fan edition is identical in function to this free version. It is there for those who ask about donating money or some way to display their appreciation.

...and finally something for terminal junkies! :-)
Anybody can use DNSwitch, just added some insights what happens in behind the screen... so here goes what happens after you put the set DNS feature of DNSwitch to action...

initially, the default settings are used in some terminal app when performing some name resolution - uses the provider's service (Server: 192.168.43.1)...

u0_a40@android:/ $ nslookup google.com
Server: 192.168.43.1
Address 1: 192.168.43.1

Name: google.com
Address 1: 173.194.35.161 muc03s02-in-f1.1e100.net
...
Address 12: 2a00:1450:4016:801::100e muc03s02-in-x0e.1e100.net

...and now installed and activated DNSwitch - Server has changed to 8.8.8.8...

u0_a40@android:/ $ nslookup google.com
Server: 8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com

Name: google.com
Address 1: 173.194.44.33 muc03s08-in-f1.1e100.net
...
Address 12: 2a00:1450:4016:803::1006 muc03s08-in-x06.1e100.net

Recently changed in this version

Most devices should update the settings automatically. For some devices you might have to wipe the app data for DNSwitch in 'settings - apps'.

v1.4: a minor feature release
( ) first shot at IPv6 (thanks Jakob Shoptaw)
( ) now supports popup notifications (toasts) on connection changes (thanks Choniy Tien)
( ) abridged notifications (Google's DNS now fits in one line on small screens)
( ) various code changes


Comments and ratings for DNS switch
  • (56 stars)

    by Dave Haigh on 10/03/2014

    Sorry but this doesn't work on KitKat.

  • (56 stars)

    by Ard Seven on 13/02/2014

    it change the net.dns1 and net.dns2 value but my 3g connection still got blocked. And it appear my n7000 run with cyanogenmod 11 also fill the value net.rmnet0.dns1 and net.rmnet0.dns2. Will give 5 if you can make it work.

  • (56 stars)

    by Francesco Lancioni on 13/02/2014

    Android 4.4.2 stock with root, Nexus 4

  • (56 stars)

    by Agung Prakoso on 04/02/2014

    Doesnt work on me, please help

  • (56 stars)

    by Jakob Shoptaw on 03/02/2014

    This seems to be working as intended on my Nexus 5, but I would love to be able to set an IPv6 DNS server. Currently, attempting to do so simply tells me that I have an invalid server list. Add IPv6 support and you'll get that fifth star! :-)

  • (56 stars)

    by Muhammad Alim on 01/02/2014

    Galaxy s2 (G) running slimkat rc1

  • (56 stars)

    by Томму Т on 12/01/2014

    Lg optimus g on vanir 4.4.2.