简体   繁体   English

将域名指向AWS EC2实例

[英]Point Domain name to AWS EC2 instance

I have a domain name registered with tmdhosting.com. 我有一个在tmdhosting.com注册的域名。 And I have created a WordPress multisite setup on AWS using bitnami WordPress multisite stack. 我已经使用bitnami WordPress多站点堆栈在AWS上创建了WordPress多站点设置。

Now I would like to point my domain name from my registrar to my AWS instance. 现在,我想将域名从注册服务商指向我的AWS实例。 Where they are asking me to provide them with a NS. 他们要我向他们提供NS的地方。 I am new to AWS and I am not sure as to how to go about doing this. 我是AWS的新手,不确定如何执行此操作。

Also did a little bit of research where it said that I will need a Route 53 (which is not free) I would want to know if there is another way to do this. 还做了一些研究,说我将需要53号公路(这不是免费的),我想知道是否还有另一种方法。

Can I use CloudFront to do this as with my previous provider had given me a cloudflare name server. 我可以使用CloudFront来执行此操作吗,就像以前的提供者给我提供了cloudflare名称服务器一样。

Please let me know the steps as to how to go about doing this. 请让我知道有关如何执行此操作的步骤。

To point a Domain Name to an EC2 instance, you can either use Route 53 or your own DNS service. 要将域名指向EC2实例,可以使用Route 53或自己的DNS服务。 In both cases: 在两种情况下:

  • Assign an Elastic IP address to your EC2 instance 为您的EC2实例分配一个弹性IP地址
  • In Route 53 or your own DNS service, define a domain/subdomain that points to this IP address 在Route 53或您自己的DNS服务中,定义指向该IP地址的域/子域

The above assumes that you wish to point to a single EC2 instance. 以上假设您希望指向单个EC2实例。 If you have multiple instances with a Load Balancer in front, you will require a CNAME record pointing to the DNS name of the Load Balancer. 如果您有多个实例,并且前面带有负载均衡器,则将需要一个CNAME记录,该记录指向负载均衡器的DNS名称。 (If using Route 53, using the "ALIAS" button to point to a Load Balancer.) (如果使用Route 53,请使用“ ALIAS”按钮指向负载均衡器。)

Route 53 is not free, but it is very cheap. 53号公路不是免费的,但非常便宜。 If correctly configured to point to AWS resources, it can cost only 50c/month per hosted zone. 如果正确配置为指向AWS资源,则每个托管区域每月只需花费50c。

CloudFront is a content distribution network that caches web content. CloudFront是一个内容分发网络,用于缓存Web内容。 It will not assist you in assigning a Domain Name to an EC2 instance. 它不会帮助您为EC2实例分配域名。 (Custom domain names can be used with CloudFront, but that doesn't appear to be your particular question.) (自定义域名可以与CloudFront一起使用,但这似乎不是您的特定问题。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM