# Amazon EC2 Instance has no public DNS assigned to it

Please follow the below steps to add dns hostnames to your EC2 Instances.

- Add Column VPC Id and check the VPC Id that your instance is assigned to.
- Go to console.aws.amazon.com
- Go To **Services -&gt; VPC**
- Open **Your VPCs**
- select **your VPC** connected to your EC2 and
- Edit **Summary---&gt; Change DNS hostnames: to YES**
 
**Hope this helps.**    
<span id="bkmrk-"></span>

<div id="bkmrk-last-updated%3A-june-0">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 02, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>