本文介绍了我买了一个域名,我希望把它在我的Amazon EC2实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个公共DNS的Amazon EC2实例:ec2-123 ...... amazon.com

I have an Amazon EC2 instance with public DNS: ec2-123......amazon.com

如何更改公共领域从ec2-123 ...... amazon.com到mydomain.com?

How do I change the public domain from ec2-123......amazon.com to mydomain.com?

推荐答案

在与计算机关联域名,有3个组成部分一起工作:

When associating a domain name with a computer, there are 3 components that work together:

  1. 在注册商(这是你买了域名)。
  2. DNS服务器。此服务器回复DNS请求,并解析DNS名称为IP地址。
  3. 服务器的IP地址。

这些3成分往往不是来自同一供应商(虽然在很多情况下,他们这样做)。你会从一个注册商购买一个域名,你的DNS被其他人托管,服务器被另一实体主办。

These 3 components very often don't come from the same vendor (although, in many cases they do). You would buy a domain name from one registrar, your DNS is hosted by someone else, and the server is hosted by another entity.

让我们落后,并开始与#3:

Let's go backward, and start with #3:

IP地址:你需要确保你的服务器的IP地址是静态的。这意味着它们的IP地址(4位)不在服务器的关闭之间切换。在Amazon EC2上,这就是所谓的弹性IP ,然后这是很便宜(相对于EC2实例),或者是免费的,如果你的服务器是所有的时间。

IP address: You need to make sure that the IP address of your server is static. This means that the IP address (4 digits) don't change between shutdown of the server. In Amazon EC2, this is called Elastic IP, and it is very cheap (relative to EC2 instances), or it is free if your server is up all the time.

DNS :你需要有一个DNS服务的帐号。亚马逊有一个名为航线53 一个DNS服务。其他厂商,我建议是nearlyfreespeach.net,或dyndns.com。在DNS服务,您可以定义DNS记录(通常是记录或C纪录,但还有更多)。如果你买了域名为domain.com,你想有一个记录的名字:domain.com和www.domain.com。您的DNS服务将让您的域名服务器,或者他们的IP地址的名称。通常有多个服务器,这些服务器相互备份。

DNS: You need to have an account with a DNS service. Amazon has a DNS service called route 53. Other vendors I recommend are nearlyfreespeach.net, or dyndns.com. In a DNS service, you define DNS records (typically A records or C records, but there is more). If the domain name you bought is domain.com, you want to have A records for the names: 'domain.com' and 'www.domain.com'.Your DNS service will give you the names of the name servers, or their IP address. Typically there are more than one servers which backup each other.

注册处处长:这是你让你的域名,你有一个帐户的DNS服务器之间的连接。输入你有从2。

Registrar: This is where you make the connection between your domain name and the DNS server you have an account with. Enter there the name of the server you got from '2'.

请参阅文档:  http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingNewDNS.html

这篇关于我买了一个域名,我希望把它在我的Amazon EC2实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 02:16