Gadget

Boost iPhone ‘speed’ by using Google DNS on Mobile Data Network

Having an old-yet-trusty iPhone 3G version is really testing my nerve. With the latest 4.2.1, the latest iOS it can support, it only runs like a camel carrying elephant, well maybe I exaggerated. But yes, it is slow.

Opening applications seems like forever, answering a call while an application running is also frustating. The swipe-to-answer mechanism is becoming scratch-to-answer, fells like a monkey finding a bug. But upgrading to iOS 4 was a mandatory thing since more and more appplication can only run on version 4.

Enough said, no more pitty-party, let’s find a fun thing to do on this interesting platform.

DISCLAIMER, this following procedures is for experimental only, I am not responsible for any bad things caused by this experiment.

Let’s see, there are plenty of things to consider when optimizing a system. Defragmenting, processor upgrade, memory upgrade to name a few, none of them are relevant to i device. Well there is one trick that can be done: DNS.

Yes, it might be the only one we can do right now. It’s easy to change DNS settings when using Wifi connection, it only requires changes on the IP setting for that particular connection. But for unknown reason as usual, Apple decided not to include this DNS setting on mobile network.

To complicate the problem, according to Saurik, the guy behind Cydia found here the name-to-IP mechanism on iOS is somewhat different than its *nix brothers. Usually the name server configuration should be placed in /etc/resolv.conf, some variant placed them on /var/resolv.conf but soft-linked to the former. Having proved this myself, created these two files on the iOS filesystem with no luck.

Thanks to this tutorial which tells us that Darwin Kernel in which all of the Apple Operating System derived from, somewhat mysterious on the way they do the name resolving stuff.

Well, if you are having plenty of time to spare you may see those links to study about the behind the scene stories and the mumbo jumbo things surrounding this mystery. But to make things simpler, I’ve created a simple script here that you can try.

#!/bin/sh
state=`echo "list State:/Network/Service/[^/]+/DNS" | scutil | awk '{print $4}'` 

scutil << EOF
get $state
d.add ServerAddresses * 8.8.4.4 8.8.8.8
set $state
show $state
EOF

 

Make sure that you have mobile terminal handy to run this script as root. Since the Mobile Terminal on the default Cydia repository is not compatible yet with iOS 4, please see here for step by step installing the program on your iPhone.

If you are curious about what this script is doing, it simply find an entry on the Darwin Kernel for the name resolver using ‘list’ command on scutil. The value of the GUID then feeded into scutil again, but for the purpose of changing the name server to Google’s name server.

This script is not persistence, it will replaced by the Operator’s setting if the data connection is restarted. But hey, for the purpose of fun, this one is quite great :)

 

Mobile Era

Recently the mobile device is one of the most significant thing in human life, even after purse. One can get easily distracted if they forgot their mobile device home, and maybe will turn around to get it, the case will be slightly different if they found that what’ve been left is the purse.

Getting mobile device is also a lot of easier nowadays, only by less than $30 to get, and the cost of running it is also cheaper. Operators are like crazy offering packages and offers, luring new subscribers or, hopefully, converts.

This competition will certainly lowering their ARPU (Average Revenue Per User) figure, but the key of getting the profit is the volume of subscriber and calls or texts. The other new stream of revenue is the need of the people demanding Internet connection on their mobile device.

Online everywhere, whenever needed becoming new trends. This kind of life style is supported by new mobile gadgets that are more and more sophisticated, smart and also faster. These gadgets are a mean of tools, communication device, entertainment as well as status pendant to some.

Wether we like it or not, now is the new era where mobile devices are parts of human life. In addition to that, the technology enables these devices to function more or less as personal computer, multimedia platform and also a gateway to the cyber world.