Point my domain name to the amazon instance

I am trying to point my domain name to an Amazon instance using Route53. I hope someone with Route53 experience can tell me what I'm doing wrong.

  • I created a new zone for my domain in Route53. The zone file gave me name servers, which I applied to my case.

  • Then in EC2, I created an elastic IP address and associated it with my instance. Then I created a new set of records in the zone file and set the IP address down as an A record.

  • I then waited 24 hours, but my instruction did not work. The website is still not pointing to an instance of Ec2.

Any ideas?

+8
amazon-ec2 amazon-route53 dns hosting
source share
1 answer

The combined steps are correct between the question and the comments. You just need to debug every step.

Google "DNS lookup", I usually use www.dnsstuff.com, but choose what you like. First check that the name servers are the ones you entered with your case; if not, double check that you told your case to use them, otherwise just wait longer. If so, double-check them for the values ​​in the Route 53 panel.

Then check the value of the A record registered against the one you entered. Make sure that you select “simple” as the route policy of route 53 and set “Alias” to “No”.

If the above two values ​​are correct, make sure your Apache server responds to port 80 and browse to the IP address of your server in the browser. If this works, one of the two steps above is incorrect (and make sure it is not someone else installed by Apache), or it has not yet been distributed. If this does not work, make sure that the security group set against these instances resolves all IP addresses on port 80 (i.e., 0.0.0.0/0).

Pay attention to the security group administrator’s interface after you add the rule, you still have to “apply the rule change” before it takes effect.

If you allow the inbound configuration of the security group, it still does not work, you either do not have the correct Apache on port 80, or you have something like iptables that uses the internal firewall on the server. Try something like www.yougetsignal.com using the IP address and port 80. If this works, the problem is most likely with Apache.

If you have problems at this last step, run the Linux background image, just install Apache, use the same security group and verify that the Apache instance responds using the public DNS Amazon of that instance through the browser. If this works, but you still don’t, you did something normal for your instance that only you can debug.

If everything is correctly specified in the remote DNS lookup reports, but not locally on your computer, clear the local DNS cache and try again.

+3
source share

All Articles