如何通过内部 ip 地址或 dns 使 ec2 实例与 aws 上的 rds 实例通信?
我只看到像 xxx.cehmrvc73g1g.eu-west-1.rds.amazonaws.com:3306
这样的公共(public) dns
内部 ipaddress 会比公共(public) dns 更快吗?
谢谢
最佳答案
Enabling DNS Resolution Support for a VPC Peering Connection
To enable a VPC to resolve public IPv4 DNS hostnames to private IPv4 addresses when queried from instances in the peer VPC, you must modify the peering connection.
Both VPCs must be enabled for DNS hostnames and DNS resolution.
To enable DNS resolution support for the peering connection
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
In the navigation pane, choose Peering Connections.
Select the VPC peering connection, and choose Actions, Edit DNS Settings.
To ensure that queries from the peer VPC resolve to private IP addresses in your local VPC, choose the option to enable DNS resolution for queries from the peer VPC.
If the peer VPC is in the same AWS account, you can choose the option to enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peer VPC is in a different AWS account.
Choose Save.
If the peer VPC is in a different AWS account, the owner of the peer VPC must sign into the VPC console, perform steps 2 through 4, and choose Save.
关于amazon-ec2 - Amazon RDS 终端节点内部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21089582/