博客园  :: 首页  :: 管理

今天在为某个vpc创建endpoint时(com.amazonaws.cn-northwest-1.ssm的Interface类型)时报如下错误及提示

Enabling private DNS requires both enableDnsSupport and enableDnsHostnames VPC attributes set to true for vpc-xxxx

根据提示应该是上面的vpc中没有开启 enableDnsSupport and enableDnsHostnames 这两个属性

于是定位到VPC ---> 右键 -- > Edit VPC Settings 时,保证如下两个选项都进行勾选,最后保存就可以去正常创建endpoint了

 扩展:笔者也到官网文档中去看了一下,关于这两个选项的解释,如下:

AttributeDescription
enableDnsHostnames

Determines whether the VPC supports assigning public DNS hostnames to instances with public IP addresses.

The default for this attribute is false unless the VPC is a default VPC.

enableDnsSupport

Determines whether the VPC supports DNS resolution through the Amazon provided DNS server.

If this attribute is true, queries to the Amazon provided DNS server succeed. For more information, see Amazon DNS server.

The default for this attribute is true.

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17440585.html