Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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. –  Robert Dailey 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. –  Robert Dailey 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. –  Robert Dailey 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
add comment

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.