Issue connecting with VPN using Dynamic DNS
Hi - I'm new to DigitalOcean, and this community, I have an issue that I can't solve, and I'm reaching out in the hope that someone can advise.
I've configured my server to be accessible using VPN. I've tested this, and it works fine when I point my local VPN client at the ip address (220.127.116.11).
I want to be able to switch servers without changing my VPN client config, so I've created a dynamic DNS record on DYNU.com (USAVPN1.dynu.com) which is linked to the IP address of my server (18.104.22.168). I can ping USAVPN1.dynu.com and it responds fine from the server.
Here's the issue, When I change the config of my VPN client from 22.214.171.124 to USAVPN1.dynu.com it failed to connect. This doesn't make any sense, as I'm able to ping USAVPN1.dynu.com and I get a response from 126.96.36.199. Is there some network / firewall config that I need to change to enable the DNS resolution from the VPN client ?
This works fine on AWS. I don't understand why it doesn't work on Digital Ocean.
Can some help / advise please ?