A problem has arisen with Windows 10 in that it always uses it's local DNS servers (as well as VPN assigned DNS servers) for DNS resolving, which in turn leads to a DNS leakage scenario.
Details found here: (Version 2) https://forums.openvpn.net/viewtopic.php?&t=19728
It is possible, could anybody provide an example, to use a script or batch file etc, which can save the current DNS servers (those set prior to VPN connection), then remove those servers upon successful connection to a VPN and also restore those original servers upon disconnection (or loss) of the VPN connection.
The hooks I would use to execute such a script would be the OpenVPN client directives --up and --down
Many thanks