OpenVPN DNS: VPN DNS stomping local VPN
Posted
by
Eddie Parker
on Super User
See other posts from Super User
or by Eddie Parker
Published on 2010-03-23T17:35:52Z
Indexed on
2011/11/12
1:58 UTC
Read the original article
Hit count: 645
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 10.0.1.1" # 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.
© Super User or respective owner