简体   繁体   中英

AWS ECS & CloudMap "no such host"

I have an ECS cluster setup with a container that runs a microservice hosting a public and private HTTP server.

I have the public HTTP server being connected through an Elastic Load Balancer which is working correctly, however the internal HTTP server is being routed via AWS Cloud Map and Route 53 with a private hosted zone.

AWS Cloud Map finds the instance correctly, however when trying to access the private endpoint from another ECS task I get a no such host error.

Any suggestions on what could be the cause?

Thanks!

For me it's resolved that DNS Hostnames and DNS resolution are enabled in your VPC settings,

Go to your VPC dashboard then press on "Actions" button then

Press Edit DNS hostnames

编辑 DNS 主机名

Check the "Enable" checkbox

启用 DNS 主机名

and same goes for DNS resolution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM