Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I'm connected to a Windows VPN and I want the following conditions to be met:

  1. I want my internet connection to tunnel through to the VPN's internet connection (i.e. I don't want to use the machine's local network internet connection)
  2. I want the DNS servers on my local network to take priority over the DNS servers from my VPN network

How can I set this up on Windows 7?

share|improve this question
What kind of VPN are you using? Each client implements this differently. – Nic Nov 10 '11 at 11:03

I don't believe you can do both. Setting the first option would prevent access to the local network (where the DNS servers may reside) which is how you get to the local internet connection (the other place the DNS may reside)

share|improve this answer
I was afraid of this. Basically I want to use the internet connection from the VPN but still be able to access local network intranet sites by using the local network's DNS server. – void.pointer Jun 29 '11 at 20:14
If you want to access local resources but not the web, you could try changing your default route to the VPN endpoint, but leave routing for the local network in place (and don't prevent access to local network. – uSlackr Jun 29 '11 at 20:20
can you give me a quick tutorial on how to set this up in Windows 7? Perhaps edit your original answer to show this solution. – void.pointer Jun 29 '11 at 20:23
I guess actually what would be the best solution is to be able to selectively route internet traffic through each adapter based on which DNS server is matched. – void.pointer Jun 29 '11 at 20:28
Sorry, I cannot. I don't use Ms VPN. I will say, what you describe in your comment would be done with routing changes – uSlackr Jun 29 '11 at 21:16

Your Answer


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.