When I got my Samsung Galaxy Tab from Smart Wireless Center (leading mobile provider in the Philippines) by plan 2000, the first thing that I test on the gadget is how fast the internet is via 3G/HSDPA/EDGE/GPRS. It is because I usually encounter slow or issues on connection on smart wireless which I usually solved by using Google DNS or OpenDNS. I don’t know what’s the problem with Smart’s DNS but I don’t care about it so I usually replace it with 188.8.131.52/184.108.40.206 or 220.127.116.11/18.104.22.168 which solves every problem on my Windows PC using Smart or even PLDT broadband.
Now, it is easy to configure it on Windows but I didn’t find any option on my new Android gadget on setting the DNS on 3G. So I did some Google search and find some solutions to configure the DNS on Samsung Galaxy Tab and other Android based gadgets.
Here are the things that you need to do first:
- Root your Samsung Galaxy Tab. First, I downloaded Z4Root from forum.xda-developers.com and install it on the tab. You can download it via http://forum.xda-developers.com/showthread.php?t=834428. Z4Root is used to root your Android phone which mean will allow you to have a SU (superuser) access to your phone so that you can install apps that requires SU privileges such as the script that I will feature here to configure your DNS.
What I like about Z4Root is it allows you to temporarily root your device which I recommend so that you can revert from the original setting of your tab if in case you encounter any issue on rooting the device.
- Install Busy Box. You can download BusyBox Installer from the Marketplace. You need to run it after temporarily rooting your tab. This apps allows you to run basic linux / android commands on your phone. Usually it comes with Z4root but I don’t know why my installation didn’t work and so I install it anyway.
- Install GScript Lite. This app can be downloaded via the Marketplace.
After you install the necessary apps, create a script using GScript lite and type the following:
setprop net.dns1 22.214.171.124
setprop net.dns2 126.96.36.199
setprop net.pdp01.dns1 188.8.131.52
setprop net.pdp01.dns2 184.108.40.206
Run the script and then test your browser if it uses openDNS via www.opendns.com/welcome/, openDNS will confirm if you’re using their DNS or not. You can change the numbers if you want into Google’s DNS by replacing 220.127.116.11 with 18.104.22.168 and 22.214.171.124 with 126.96.36.199.
Take note, the script should be run every time you want to use the openDNS or Google DNS using your 3G because it resets ever time a new session of the internet is created. I still don’t know how to make my tab to automatically use the DNS but I will update you if in case I find a solution about this.
Then, the NET.PDP01.DNS1 might change depending on your tab’s setting (maybe you have a different carrier, etc.) . You can check your setting by running getprop | grep dns to see your own setting which you can execute via GSCript lite. My setting is shown below:
Now if you have a better solution for this, you can leave your comments below and let me know. I’ll update you guys later if I find more stuff that I can improve this one. Happy surfing! – Bleuken