I have configured an OpenVPN server to give users remote access to internal company resources. Since the main purpose of this VPN is not to change/hide the users IP address, but to provide access to other devices, I haven't configured forced traffic redirection for clients, so it doesn't change the default network interface on their machines.
With this configuration, is it possible to force clients (mainly Windows, but also Linux) to change the default DNS server while connected to the OpenVPN server, so I can provide more human-friendly domain names to internal resources? My DNS server would likely be running on the same VM as OpenVPN, so the custom DNS address would be something like 10.8.0.1
.
I could just make the clients run a script that adds the necessary entries to the hosts files, but I'm hoping that there is a better, more automated solution that can be managed centrally.
It's important to note that I do not want to redirect all the client's traffic through the VPN, as it would probably overload the server. I just want to expose internal resources with custom domain names.
For example, if a user opens http://git_server/
in their browser, that should be resolved to 10.8.0.64
.