Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Using Windows 7 Pro here.

I have my LAN network adapter with DNS server (Google's DNS). I also have OpenVPN client to connect to my company's network.

If I type "nslookup" while disconnected from the VPN, I get (from my LAN network adapter). If I type "nslookup" while connected in the VPN, I get the DNS IP from my company's network.

That makes me think that when connected to the VPN all DNS's resolution are routed first to my company's DNS.

How can I change this order, and make the DNS resolution be routed to first, when I'm connected to the VPN?

Thank you

share|improve this question

Found it. Network and sharing centre -> Change adapter settings -> Advanced -> Advanced settings -> move your connections up and down in the first/upper box.

share|improve this answer
I think you may find that after doing this, you will no longer be able to access company resources. When you set the Primary DNS to Google, all DNS requests will be sent to Google first, and only to the second one when Google doesn't respond. For internal resources, Google will not have a record, and will respond that it doesn't have the record. Windows will not then do a request to the corp DNS. DNS resolution doesn't work that way. Test! – dunxd Aug 7 '12 at 10:21

This document at addresses issues with host names resolution order on Windows 7/Linux/OpenVMS.

It is directly related to the DNS subject.

share|improve this answer
Welcome to Server Fault! Generally we like answers on the site to be able to stand on their own - Links are great, but if that link ever breaks the answer should have enough information to still be helpful. Please consider editing your answer to include more detail. See the FAQ for more info. – slm May 8 '13 at 8:46

Your Answer


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