DNS redirection for Amazon machine

1

Hello, I have an EC2 machine in amazon, and I hired the Route 53 service, I created a hosted zone, so I had 4 dns addresses, I put this in my domain and it is still appearing that the page is not available, I should I install a dns server on the machine something like this?

Thank you.

    
asked by anonymous 09.08.2014 / 01:02

1 answer

2

After creating the hosted zone, with the name of your domain, create CNAME and A type entries for the PUBLIC DNS and IP of your VM, for example:

NAME                   TYPE   VALUE
seudominio.com.br       A      192.168.0.128
www.seudominio.com.br   CNAME  ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com

The public DNS and IP you get on the EC2 panel, right after you have created the VM

Now inside the VM, it is necessary of course to create a web environment, you can opt for nginx or apache, hence already another question ....

Also do not forget to change the DNS of your domain, to the DNS addresses created by route53, and wait for the propagation, which can take up to 24h.

    
09.08.2014 / 01:15