- Newest
- Most votes
- Most comments
Hello.
When I tried to resolve the name using the "nslookup" command, I was able to confirm the public IP address, so I assume that RDS public access is enabled.
In this case, you need to configure the RDS security group's inbound rules to allow the public IP address you are connecting from.
Also, make sure that a route to the Internet gateway is set in the route table of the subnet where RDS is running.
https://repost.aws/knowledge-center/rds-connectivity-instance-subnet-vpc
nslookup rds-mysql-10mintutorial.c9acoo888a18.us-east-1.rds.amazonaws.com
Server: 172.29.240.1
Address: 172.29.240.1#53
Non-authoritative answer:
rds-mysql-10mintutorial.c9acoo888a18.us-east-1.rds.amazonaws.com canonical name = ec2-54-159-171-16.compute-1.amazonaws.com.
Name: ec2-54-159-171-16.compute-1.amazonaws.com
Address: 54.159.171.16
By the way, enabling public access for RDS is not recommended for security reasons, so please consider connecting using Session Manager's port forwarding function, etc., as introduced in the blog below.
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/
Relevant content
- asked 25 days ago
- asked a year ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago