Why isn't the DNS resolution request sent to the DNS server specified on the VPN server?
I configured the DNS server IP addresses when I provisioned the VPN server; however, the DNS resolution request was not sent to the DNS server.
The DNS resolution request is sent to the original DNS server.
For Linux, the OpenVPN command-line client can receive the DNS option from the VPN server, but the OpenVPN command-line client expects an external command to act on this information. No such commands are configured by default. You must specify
these commands with the up
and down
config options. For more information, see OpenVPN DNS.
Follow these steps to resolve this issue:
- Option 1: Use OpenVPN Connect V2 or V3 instead of the OpenVPN command-line client.
- Option 2: Use a custom script recommended in OpenVPN DNS.