When I use a ovpn client file as provided by the VPN provider, I can add
Code: Select all
block-outside-dns
Code: Select all
dhcp-option DNS
So far, so good.
However, the VPN provider always adds it own DNS server too. I would like to block that, so ONLY the DNS servers I add are used...
I tried to add 4 dhcp options (the max as it seems), but then an error occurs.
My current solutions to deny the VPN provider to store my DNS requests are:
1) I have a local DNS server in my network, when I remove "block-outside-dns" from the ovpn file and specify that DNS in the OpenVPN TAP Local area connection, the provider assigned DNS is bypassed. (but my DNS server is exposed)
2) Use the provider ovpn config on a router, and redirect all traffic from my local network, including DNS queries.
Is there another way to remove the openvpn provider assigned DNS from the client?
Thanks,
Tony