openvpn client: force a host resolution to a given IP

OpenVPN itself does not provide any name resolution. Usually name resolution is provided by a separate service, which will normally first question a local file (/etc/hosts under linux or C:/Windows/system32/etc/hosts or similar on a Windows computer) and, if the name is still unresolved, resort to using DNS, based on the name servers defined (these can either be fixed when using static addresses, but are usually set up by DHCP when acquiring an IP address).

With the above in mind, there are a few things you can do to achieve this:

1.) Configure the VPN server such that it provides a name server address to the client which will resolve domain.tld to to 10.11.12.13 or

2.) Configure the VPN client such that it will run a script once the connection has been established. This script can then either modify the local hosts file or change the name servers as required.