Odd problem - I created a VPN Endpoint to EC2. I’m on a Mac. When I run AWS VPN Client, it works. When I run Tunnelblick, it works. But when I run OpenVPN it cannot resolve the AWS VPN Endpoint Name. And so it fails.
I setup my AWS VPN Endpoint DNS servers to 8.8.8.8 in the hopes that Google will cache and broadcast the name.
Thoughts?
Sorry to hear about the hiccup.
I think this doc can help to troubleshoot your settings further.
If not, we have more ways you can reach out in our community for technical support, explained in this article.
- Ann D.
Nvm - found the very specific issue here - in case someone else encounters this issue:
https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/troubleshooting.html#resolve-host-name
Unable to resolve Client VPN endpoint DNS name
Problem
I am unable to resolve the Client VPN endpoint’s DNS name.
Cause
The Client VPN endpoint configuration file includes a parameter called remote-random-hostname
. This parameter forces the client to prepend a random string to the DNS name to prevent DNS caching. Some clients do not recognize this parameter and therefore, they do not prepend the required random string to the DNS name.
Solution
Open the Client VPN endpoint configuration file using your preferred text editor. Locate the line that specifies the Client VPN endpoint DNS name, and prepend a random string to it so that the format is random_string.displayed_DNS_name
. For example:
Unable to resolve Client VPN endpoint DNS name
Problem
I am unable to resolve the Client VPN endpoint’s DNS name.
Cause
The Client VPN endpoint configuration file includes a parameter called remote-random-hostname
. This parameter forces the client to prepend a random string to the DNS name to prevent DNS caching. Some clients do not recognize this parameter and therefore, they do not prepend the required random string to the DNS name.
Solution
Open the Client VPN endpoint configuration file using your preferred text editor. Locate the line that specifies the Client VPN endpoint DNS name, and prepend a random string to it so that the format is random_string.displayed_DNS_name
. For example:
Thank you - I found the solution but it wasn’t obvious. Appreciate the response!