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

Using Windows 7 Pro here.

I have my LAN network adapter with DNS server 8.8.8.8 (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 8.8.8.8 (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 8.8.8.8 first, when I'm connected to the VPN?

Thank you

share|improve this question

2 Answers 2

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
1  
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 http://vouters.dyndns.org/tima/Windows-Unix-OpenVMS-DNS-Comparing_DNS_search_order_between_operating_systems.html addresses issues with host names resolution order on Windows 7/Linux/OpenVMS.

It is directly related to the DNS subject.

share|improve this answer
1  
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

 
discard

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