Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have a Windows Server 2008 R2 Enterprise server running in our home network. It has VPN functionality installed and fully working.

If I connect with a computer, the computer will get right DNS servers. If I connect with Android tablet (Asus Transformer Prime), the tablet will still use Google's DNS servers.

The problem with this is that I can't resolve local website addresses such as intranet. Getting the access to that site is more than necessary.

I want the (non-rooted) Android tablet to use the DNS servers provided by the VPN server.

How can I fix this?

share|improve this question
    
You can do this from server side. As all DNS queries are going thru server, mapping Google DNS IP with your DNS IP would work.. –  Sachin Shekhar Apr 8 '12 at 11:49

2 Answers 2

up vote 5 down vote accepted

You can solve this issue either from the Android side or from the Windows side:

From the Android side

  1. Tap your device "menu" button, and select "settings";
  2. Tap "Wireless & networks";
  3. Tap "Wi-Fi settings";
  4. Tap your device "menu" to bring up extra options and select "advanced";
  5. Tap "Use static IP";
  6. Fill in your local network static IP details and dns server details;
  7. Tap your device "menu" to bring up extra options and select "save".

Ip Settings Screen Shot


From the Windows side

  1. Open the DNS management;
  2. Add a new Forward Lookup Zone for the Google DNS and set a Host A record to your local IP.
share|improve this answer
    
I believe the Android settings you give are valid for Android 2.3+ (which might well be OK for the OP). However, these appear to have changed under Android 4.0 (which I've added in my answer). –  w3d Jul 30 '12 at 20:42
    
Thanks for your answer. –  MikkoP Jul 31 '12 at 7:19

This is really a continuation of @Zuul's answer, to cover the DNS settings in Android 4.0+ (ICS), which is a little harder to find IMO. AFAIK Zuul's answer covers Android <2.3 settings.

From the Android side (Android 4.0+ ICS)

  1. Settings
  2. WiFi (click on word "WiFi", not ON/OFF switch)
  3. Press and hold (long tap) your wireless network until dialog pops up
  4. Select "Modify Network"
  5. Check "Show advanced options" checkbox at the bottom
  6. Switch "IP settings" to "Static"
  7. Fill in your local network static IP details and DNS server details
  8. Tap "Save"

(Whoever made long-taps a standard interface feature is a dummy!)

share|improve this answer
    
They are a bit different on each version and yours is the right one for me but because Zuul was faster and answered earlier with almost an identical answer, I gave him the answer mark. –  MikkoP Jul 31 '12 at 7:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.