- Newest
- Most votes
- Most comments
Based on your description, it sounds like you've covered most of the common configuration issues that would prevent connectivity to an RDS PostgreSQL instance. The fact that the DNS endpoint isn't resolving at all (returning "Non-existent domain") is particularly unusual since AWS should automatically register DNS records for RDS instances.
Here are some additional troubleshooting steps to consider:
-
Subnet Configuration: Ensure your RDS instance is deployed only in public subnets. If your RDS instance is using both private and public subnets, this can cause connectivity issues, especially during failover. Having the instance in both subnet types can lead to DNS resolution problems.
-
Check the Endpoint Format: Verify that you're using the correct endpoint format. RDS endpoints typically follow this pattern:
<instance-identifier>.<random-string>.<region>.rds.amazonaws.com. Make sure there are no typos in the endpoint name. -
DNS Resolution Path: The DNS resolution issue might be related to how your local network is handling AWS domain queries. Try using different DNS servers or a VPN to rule out any local DNS interference.
-
Recent Changes: If this RDS instance was working previously, consider any recent changes to your AWS environment that might have affected DNS resolution.
-
Test from an EC2 Instance: Launch an EC2 instance in the same VPC and try to resolve the RDS endpoint from there. This can help determine if the issue is specific to your local environment or if it's an AWS-side problem.
-
Check for Service Health Issues: Check the AWS Service Health Dashboard for any reported issues with RDS or Route 53 in your region.
If none of these steps resolve the issue, it may indeed require AWS Support intervention. They can check if there's an issue with the DNS registration for your specific RDS instance and help resolve any underlying problems that might not be visible through the console.
Sources
Lost public access to AWS RDS postgresql instance | AWS re:Post
How DNS name of VPC endpoint resolves to Private IP outside VPC | AWS re:Post
Why can't I access my RDS? | AWS re:Post
Troubleshoot connection to AWS service endpoints from Linux | AWS re:Post
Relevant content
- asked 2 years ago
