title: How can I use a custom domain for public and private DNS when provisioning instances on AWS?
body: <p>I am trying to create a VPC where provisioning of EC2 instances is going to be automated, but each instance is going to be assigned a public dns of "<code>ec2-{public-ip}.{region}.compute.amazonaws.com</code>" and a private dns of "<code>ip-{private-ip}.me-south-1.compute.internal</code>". What I want here is to be able to use my own domain (using Route53) to make instances get a public dns of something like </p>
  
  <blockquote>
    <p>"instance-id.customdomain.com"</p>
  </blockquote>
  
  <p>And to keep updating the dns entries on Route53 after each reboot of the EC2 instance.</p>
  
  <p>Is there anyway to accomplish this from within the VPC settings or Route53's? If not, how could such a thing be accomplished?</p>