- Newest
- Most votes
- Most comments
-
System Status: RDS instance is "Available," has Publicly Accessible = "Yes," and all Security Group/NACL/Route Table settings are confirmed to be correct. Existing application connections inside the VPC are running fine.
-
NSLOOKUP Result (The Core Problem):
- Command:
nslookup [RDS-ENDPOINT] - Result: Resolves to 43.202.7.~~~ (An old/defunct Public IP).
- Command:
-
Connection Behavior Confirmation:
- External Access (Fails): Local PCs/Other VPCs attempt to connect to 43.202.7.~~~ and fail (Connect timed out).
- Internal Access (Succeeds): An EC2 instance within the VPC bypasses the public DNS error and successfully connects to the actual active Private IP: 10.0.6.~~~ (Verified via successful telnet).
answered a year ago
Try clearing your DNS cache on affected systems. This often resolves immediate connection issues.
- On Windows, use ipconfig /flushdns,
- Mac -> use sudo killall -HUP mDNSResponder,
- Linux -> use sudo systemd-resolve --flush-caches.
If DNS clearing doesn't help, consider these temporary solutions: Create a new read replica and promote it to master Use an alternative endpoint temporarily
To confirm this suspected root cause, we can verify:
- Compare DNS resolution from inside and outside VPC dig +trace your-rds-endpoint.region.rds.amazonaws.com
- Verify Endpoint History - Capture the endpoint information over timeaws rds describe-db-instances --db-instance-identifier your-instance-id
- Test connection using external DNS server (8.8.8.8)
Consider implementing an RDS Proxy or connection pooling if you frequently perform Blue/Green deployments to help manage connections more effectively during switchovers.
Relevant content
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated a year ago
