Super User is a question and answer site for computer enthusiasts and power users. 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

I've finally noodled with OpenVPN enough to get it working. Even better, I can mount samba drives, ping network machines through the TUN device, etc - it's all great.

However, I'm noticing that if I use the following directive, then some of the machines that are normally visible by the client, on the client's side (i.e., not through the VPN) get masked with some other server out on the Internet.

push "dhcp-option DNS" # Push our local DNS to clients

Is there any way to avoid this, besides hacking the 'hosts' file on the client machine? Ideally I'd like to only use my VPN's DNS for machines within that domain.

share|improve this question
Are those machines are different subnets? Is there anything that differentiates them from the machines that can be reached? – heavyd Mar 23 '10 at 18:58
I'm confused as to which machines you're referring to. The machine I'm trying to reach is in my LAN subnet. The one I'm reaching when I'm connected to my VPN is out in the Internet somewhere - totally different IP. If that's what you mean, then yes - they're on different subnets. – Eddie Parker Mar 26 '10 at 1:23

If it only affects XP and Win 2000 machines, it might be the problem discussed in KB 311218.

A client computer may not use the DNS server from a VPN connection if the default gateway is set to the remote connection.

share|improve this answer
Hrmm, good link. Unfortunately it's a Vista box. Reordering the VPN interface to be lower priority than the normal one works, but then anything in my home domain gets resolved using 'normal' DNS versus using my domain's dns. I'm not sure how to fix this. – Eddie Parker Apr 7 '10 at 22:46

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.