Wednesday, May 20, 2015

2.3 gingerbread - Android Tethering DNS Problem



I am using a Sony Xperia Go mobile device with Android Gingerbread (2.3.7). Whenever I try to use Tethering (USB/Mobile Wifi Tethering), I could not immediately access website using my laptop.


However, I know that there is an Internet connection because I can access websites using their IP address in my Google Chrome in my laptop. I tried nslookup in command prompt several times, trying to query Google's DNS servers (8.8.8.8 and 8.8.4.4) and 192.168.43.1 (my phone).


I always get the error DNS request timed out.


However, after several restarts, turning on/off Data and mobile hotspot, it would suddenly work and all the DNS requests through command line would get responses. But there is no definite number of restarts. Just today, it took me about 30-45 minutes doing this routine of restart-turn off hotspot-turn on-turn off mobile data-turn on.


Every time I do this, I can use my mobile phone to access the Internet. So, that is not the problem. The mobile phone can connect to the Internet.


I also use AirDroid. AirDroid is also working normally and I could access it in my browser. So there really is an established connection between the phone and the laptop. It's just DNS requests are not pushing through. I have tried this for both mobile hotspot/USB tethering.


My mobile provider allows tethering and I have a mobile data plan. Can you help me determine what is causing the DNS problem? This happens almost every day.



Answer



I ended up manually changing my DNS server to tether Internet from my mobile phone. My phone uses a local DNS server from my mobile carrier which I was able to trace using CompruebaIP.


Any other DNS server is blocked by my mobile carrier (Globe Telecom). I reckon that my phone's DNS service is not properly working. When tethering, the DNS provider should be my phone which serves as proxy when connecting to my mobile carrier's DNS servers. Thus, I had to set them manually on my laptop.



I am using Windows 8 and my phone is an Android Gingerbread 2.3. So basically, the problems are:



  1. My mobile carrier is bad. They are blocking other DNS servers and are monopolizing DNS requests. This isn't good because their servers aren't that good.

  2. My phone's DNS service appears to be broken. This means my laptop could not connect to the DNS service of my mobile phone which then forwards DNS requests to my mobile carrier's DNS service.


Fortunately, after two months of despair, I was able to resolve this. This is what I did:



  1. Find out what the actual DNS servers are my mobile carrier is using through CompruebaIP.

  2. Manually set my laptop's DNS servers to the one used by my mobile carrier.

  3. Even better, I retained Google's Public DNS server 8.8.8.8 as my primary DNS server and used my mobile carrier's primary DNS server as my alternate DNS server.



So, now, I can use my mobile phone as my Internet provider for my laptop whenever I am not at home or at work without having to change anything every time I use it.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...