Redirecting DNS to Amazon machine

Asked

Viewed 2,561 times

1

Hello, I have an EC2 machine on Amazon, and I hired tbm the Route 53 service, I created a Hosted zone, with this I had 4 dns addresses, I put this in my domain and even so it is appearing that the page is not available, I must install a DNS server on the machine something like this?

Thank you.

1 answer

2


after creating the Hosted zone, with your domain name, create entries of type CNAME and A, for the PUBLIC DNS and IP of your VM, 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 take in the EC2 panel right after you created the VM

Now within the VM, you need to of course create a web environment, you can choose to Nginx or apache, dai ja é outra questão....

Also don’t 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 24 hours.

  • I believe that I have forgotten to put the entries CNAME and A, the rest ta blza, I have the iis as web server and redirected the dns in the domain.

  • ah so I guess I just missed it, forehead and, good luck

  • how much CNAME input I try to create only with the domain name appears this error: "Rrset of type CNAME with DNS name piscicontrol.com.br. is not permitted at Apex in zone piscicontrol.com.br."

  • posé i erred, edited the answer, the CNAME is for names and not IP’s, replace by public DNS of your vm, la no Route53

  • Taking advantage of the doubt, William Borba, can explain to me the difference of the entry of the type A to the entry of the type CNAME. When I use each one of them?

  • CNAME(Canonical name) are used for subdominios, in the case "www" is a domain of "seudominio.com.br" and type A entries are for pure domain IP, is the q I know, thus, more or less rs

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.