Changes

Straight to the Solution
This solution applies to a Linux based OpenVPN server and Linux based client.
==Straight to the Solution==
Here's the solution up front. Check out the rest of the article for more details on my setup.
The problem boils down to the fact that, by default, the client's ''resolv.conf'' file doesn't contain a line to point the client to the VPN's DNS server nor does it contain a line telling the client what your local domain name is. Getting these two lines added (and removed) from ''resolv.conf'' automatically is the goal.
*==Server Mod==**#Ensure the following two lines are in your ''server.conf'' (typically at ''/etc/openvpn/server.conf'') <nowikipre>push "dhcp-option DNS 192.168.1.1"&#10;push "dhcp-option DOMAIN mylocaldomain.lan"</nowikipre>*==Client Mod==**#Install the ''resolvconf'' package to give your OpenVPN client the ability to rebuild the ''resolv.conf'' file when you start and stop your VPN connection; backup/remove your existing ''resolv.conf'' file; and create a [https://en.wikipedia.org/wiki/Symbolic_link symlink] to ''resolvconf's'' ''resolv.conf'' file. <nowikipre>sudo apt install resolvconf&#10;sudo mv /etc/resolv.conf /etc/resolv.conf.orig&#10;sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf</nowikipre>**#Add the following 2 lines to your ''client.ovpn'' file <nowikipre>up /etc/openvpn/update-resolv-conf&#10;down /etc/openvpn/update-resolv-conf</nowikipre>**#Run the ''openvpn'' command with the following call <nowikipre>sudo openvpn --script-security 2 --config /path/to/client.ovpn</nowikipre>
==Router Setup==