简体   繁体   English

AWS ELB和GoDaddy Domain正常运行

[英]AWS ELB and GoDaddy Domain working

I have registered a domain in goDaddy.com and want the traffic to be sent to AWS route53. 我在goDaddy.com上注册了一个域名,并希望将流量发送到AWS route53。 I have a ELB created I did the following steps 我有一个ELB创建我做了以下步骤

  1. In Route 53, created a HostedZone for my godaddy domain name which in turn gave me a NS record with 4 amazon DNS server names and an SOA record. 在Route 53中,为我的godaddy域名创建了一个HostedZone,这反过来又给了我一张带有4个亚马逊DNS服务器名称和SOA记录的NS记录。
  2. Created a new "A" record with just the naked domain and Aliased it with Elastic LB 仅使用裸域创建了一个新的“A”记录,并将其与Elastic LB别名
  3. In godaddy , in DNS management, If I use the ELB DNS name for "A" record, I get an error "Enter a valid IP address" where as if I give the EC2 public IP address for "A" record , I can see the index page . 在godaddy中,在DNS管理中,如果我使用ELB DNS名称作为“A”记录,我收到错误“输入有效的IP地址”,就好像我给“A”记录的EC2公共IP地址,我可以看到索引页面。 I have still not given the 4 NS record DNS server names in godaddy. 我还没有在godaddy中给出4个NS记录DNS服务器名称。

Questions : 问题

  1. How do I use ELB instead of using EC2 Public IP. 如何使用ELB而不是使用EC2 Public IP。

  2. If I use the NS values, does that means the domain is ported to AWS Route53 and I will be charged every month at AWS? 如果我使用NS值,这是否意味着域名被移植到AWS Route53,我将每月在AWS收取费用? If I use the EC2 IP address only in goDaddy ,then I will not be charged by AWS ? 如果我只在goDaddy中使用EC2 IP地址,那么我不会向AWS收费吗?

Hope I am clear on my question, if not please let me know I can explain further 希望我清楚我的问题,如果不是,请让我知道我可以进一步解释

First of all AWS ELB does not provide a A record with an IP address and instead it provides a CName. 首先,AWS ELB不提供带有IP地址的A记录,而是提供CName。 Unfortunately a CName cannot be mapped to a naked domain in DNS configurations and as a work around, AWS provides an Alias for A record. 遗憾的是,CName无法映射到DNS配置中的裸域,并且作为解决方法,AWS为A记录提供了别名。

However using Godaddy DNS, Alias to AWS resources such as ELB is not possible which limits using naked domain mappings to ELB. 但是,使用Godaddy DNS时,不能使用裸域映射到ELB来限制ELB等AWS资源。 Therefore you need to delegate DNS management to Route53 hosted zone(Or atleast for the naked domain) having the name server forwarding which cost you around $0.5 per hosted zone month for the first 25 hosted zones. 因此,您需要将DNS管理委派给具有名称服务器转发的Route53托管区域(或至少为裸域),这对于前25个托管区域,每个托管区域月费用约为0.5美元。

Since an IP address is available for an EC2, if you directly point an A record in Godaddy, it won't cost for DNS at AWS. 由于IP地址可用于EC2,如果您直接在Godaddy中指向A记录,则AWS的DNS成本不会增加。

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

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