How To Guide: Set Up & Configure OpenVPN client/server VPN
Setup Remote VPN Access Using PfSense and OpenVPN Mar 15, 2019 Solving OpenVPN DNS Issues on Android Clients OpenVPN servers and clients can configure what DNS server the client should use while connected using a dhcp-option DNS setting (either set in the client config, or pushed to the client from the server). This can be necessary for a number of reasons: you want to use an internal DNS server that resolves local hostnames to local machines on the VPN, OpenVPN - UntangleWiki May 15, 2020
OpenVPN DNS settings. : VPN
If you use a VPN, as you should, then keep reading to learn How to Set DNS Automatically Using OpenVPN # What I did was take advantage of the fact that I use a VPN 1 with the OpenVPN app 2 and I configured my .ovpn file to uses a specific DNS every time it connects to the VPN network by adding the following line: dhcp-option DNS X.X.X.X Voilà.
DNS Setting - GL.iNet Docs
Apparently there is problem with a faulty binding order in Windows, at least including Windows 2000/XP/7. This will cause Windows OpenVPN clients to use the default network adapter's DNS settings rather than the VPN adapter's settings. To fix this you need to place your VPN TUN or TAP device above your local network adapter in the bind order: How To Guide: Set Up & Configure OpenVPN client/server VPN When redirect-gateway is used, OpenVPN clients will route DNS queries through the VPN, and the VPN server will need handle them. This can be accomplished by pushing a DNS server address to connecting clients which will replace their normal DNS server settings during the time that the VPN is active. For example: push "dhcp-option DNS 10.8.0.1"