3

I'm trying to create a AWS Client VPN endpoint. I followed this AWS tutorial and I always get a timeout error like this:

DNS resolution error: 30 times.

I'm not sure what to do, I saw some videos on this topic and it seems I did everything correctly, does anyone know how to debug this? (or what could be the cause)?

AFortunato
  • 181
  • 1
  • 10

1 Answers1

5

This is really stupid. I tried to check IPs for my endpoint

host *.cvpn-endpoint-XXXX.prod.clientvpn.[region].amazonaws.com

and

host cvpn-endpoint-02aa72c3aa8d442d6.prod.clientvpn.eu-west-1.amazonaws.com

and both failed. As described in this response, you need to add a random subdomain. By adding this on the .ovpn file (on the remote parameter), it works!

AFortunato
  • 181
  • 1
  • 10
  • 2
    It looks me 1 hour to try to find what's wrong with my configuration until I found this topic. I cannot believe AWS lets us download the .ovpn file and leave this stupid thing for us. Yeah, basically we have to open the .ovpn file with an editor and insert "random." between "remote ".cvpn-endpoint" -> "remote random.cvpn-endpoint.." – Hieu Le Jan 12 '22 at 00:39
  • It's not that stupid, here's Amazon's explanation: https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/troubleshooting.html#resolve-host-name – Fo. Jun 02 '23 at 17:32