EC2 instance has no public DNS

后端 未结 18 1394
-上瘾入骨i
-上瘾入骨i 2020-12-22 16:26

A guy I work with gave me the EC2 credentials to log onto his EC2 console. I was not the one who set it up. Some of the instances show a public dns name and others have a bl

18条回答
  •  不知归路
    2020-12-22 17:00

    First of all, there can be two reasons for this:

    1. You have created your own VPC and forgot to enable Public DNS.

    To solve this :

    i) Go to AWS VPC console and select the VPC you have created.

    ii) Then click on Actions and then enable DNS Resolution.

                OR
    
    1. You have not enabled public ip-assign option in EC2 configuration.

    Here you cannot change the setting; so create an ami image and then recreate the instance from that.

提交回复
热议问题