AWS route53 hosted zone settings

我的梦境 提交于 2019-12-24 19:23:10

问题


I have registered a domain name on AWS route53. The domain name is invatxxx.com I have an ec2 instance, on that machine an apache server and Drupal web site. The ec2 instance has an elastic ip address xx.xx.66.245. I can access the website from the IP address. The domain has the following server names:

  • ns-xx.awsdns-xx.net
  • ns-x5.awsdns-x1.com
  • ns-x3.awsdns-x2.co.uk
  • ns-xx1.awsdns-x3.org

I have created a hosted zone with a name as the domain name, to 'NS – Name server' record set I added the server names from the registered domain. To 'SOA – Start of authority' record set i added the '

ns-xx1.awsdns-x3.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400

' at value. for 'A - ipv4 address' record setI added the 'www' before the domain name and for value the elastic IP address of the instance. I had another domain name for this instance and it worked, I also added SSL certificate from https://letsencrypt.org/ for the old domain name. But when I tried to change the domain name it did not work. Any ideas what it is wrong with my settings?


回答1:


When you create a hosted zone -- an SOA record and an NS record are created by default; do not edit them.
Now you must first add an A record for your domain 'invatxxx.com' before adding any more A record for any other hostname. See the screenshot below and note that you must leave the "Name" field blank (you will find it automatically ending with uneditable text invatxxx.com):

At this point your website should be accessible at http://invatxxx.com/.
In case you want your website to be available at http://www.invatxxx.com/ also, then add a CNAME record to make 'www.invatxxx.com' an alias of 'invatxxx.com'. See the screenshot below and note that you must not leave the "Name" field blank this time and that "Value" field should be filled with 'invatxxx.com':

At this point your website should be accessible at http://www.invatxxx.com/ as well.



来源:https://stackoverflow.com/questions/48531597/aws-route53-hosted-zone-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!