Redirecting DNS only through VPN (solved kind of)
I succesfully setup OpenVPN on my pfSense box and I can route traffic from the client to the remote LAN using straigh IP's, but I need the clients to resolve names using the DNS servers on the remote LAN. I want to do it without redirecting all traffic through the VPN tunnel. I just need to redirech DNS traffic to the remote LAN.
I used the push dhcp-option DNS option, but the clients are still unable to resolve names on the remote LAN because they are using the DNS provided by the local gateway. I know I can create a script to start OpenVPN and change the DNS to point to the remote DNS servers, but I rather use a more "elegant" solution if possible.
Any suggestion? thanks.
Not sure what changed, but it is now working.