Cannot resolve RDS Instance Endpoint name with AWS-Client-VPN - Only IP addresses

,

Hi there,

A bit of a weird scenario I’m having with AWS-client-vpn.

Since I’ve provisioned it, the data engineers in my team cannot use the aws-client vpn we have set up to resolve RDS cluster and instance endpoints. The weirdest thing about this situation is that if they use the private ip address of the instance, or even try to telnet to it on port 5432, they can get a solid connection.

This leads me to believe that there is a DNS issue with the setup, that only seems to effect a few people (for me and 2 other platform engineers the endpoint name works, for 3 of the data engineers it doesn’t work)

any help with this would be appreciated.

SOLVED: Thanks for your help peeps. I realised that I was setting a cloudflare DNS address for the vpn endpoint rather than the 2nd address of the VPC CIDR range, which is reserved for the VPC DNS server. The instance endpoints can now be resolved when the data-engineers use the client vpn.

Hi
Few things to confirm / check initially:

  1. Can you confirm the RDS is in the same VPC that the Client VPN connects to?
  2. What have you set as the Client VPN DNS Server IP address? Is it the AmazonProvidedDNS (CIDR+2) of the VPC?
  3. Does that VPC have “DNS Resolution” and “DNS Hostnames” enabled?

Given it works for some users, I suspect these might be set correctly, but it would be the thing I would check first.

To clarify the DNS point, if your VPC CIDR is 10.10.0.0/16, the DNS server is 10.10.0.2

so what does an `nslookup` to the endpoint give you from a machine that cannot connect?

I dug into this for weeks. My DNS provider didn’t resolve the addresses. Still no idea why: https://stackoverflow.com/questions/71366382/aws-client-vpn-dns-resolution-for-rds

What have you set as the Client VPN DNS Server IP address? Is it the AmazonProvidedDNS (CIDR+2) of the VPC?

This helped me resolve it, thank you so much. I realised that I had set the DNS servers on the client-vpn endpoint to cloudflare, which couldn’t resolve the RDS instance names. Thank you!

Happy it helped.