Route 53别名记录不起作用? [英] Route 53 alias record not working?

查看:50
本文介绍了Route 53别名记录不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前有一个在AWS上工作的网站.它是&在AWS上注册.它已在托管区域中设置,并指向EC2实例.一切都很好.

I previously had a website working on AWS. It was created & registered with AWS. It was setup in the hosted zone and point to an EC2 instance. Everything was working fine.

我获得了智能",并创建了一个指向EC2实例的负载均衡器,然后删除了先前的托管区域记录(和关联的记录集),并重新添加了指向负载均衡器的托管区域记录.

I got "smart" and created a load balancer, which pointed to the EC2 instance, and then I deleted the previous hosted zone record (and associated recordset) and re-added the hosted zone record which would point to the load balancer.

经过大量谷歌搜索后,我确定需要添加一个"A"记录,使其成为别名并将其指向负载平衡器.到目前为止一切都很好.

After much googling I determined I needed to add an "A" record, make it an alias and point it to the load balancer. All good so far.

然后我去浏览器中访问该网站,我得到了ERR_NAME_NOT_RESOLVED.我等了几个小时,等待DNS服务器更新,但仍然没有运气.DNS缓存混乱,没有运气.

Then I went to access the website in browser and Im getting ERR_NAME_NOT_RESOLVED. I waited hours for DNS servers to update and still no luck. Flushed DNS cache and no luck.

我做了很多其他更改-在记录集中名称前面尝试使用www,在ptr记录中尝试指向负载平衡器DNS名称,甚至尝试在域记录和托管区域记录之间同步dns服务器名称.仍然没有运气.同样的错误.

Ive changed multiple other things - tried www in front of name in recordset, tried a ptr record which pointed to load balancer DNS name, and even tried to sync the dns server names between the domain record and the hosted zone record. Still no luck. Same error.

我已经执行了"nslookup调试",老实说不知道我在看什么.

Ive performed "nslookup debug" and honestly dont know what Im looking at.

得到的答案:标题:操作码=查询,id = 1,rcode = NOERROR标头标志:响应,身份验证.答案,想递归,递归还是有用的.问题= 1,答案= 1,权限记录= 0,其他= 0

Got answer: HEADER: opcode = QUERY, id = 1, rcode = NOERROR header flags: response, auth. answer, want recursion, recursion avail. questions = 1, answers = 1, authority records = 0, additional = 0

QUESTIONS:
    1.1.168.192.in-addr.arpa, type = PTR, class = IN
ANSWERS:
->  1.1.168.192.in-addr.arpa
    name = xyz
    ttl = 0 (0 secs)


服务器:xyz地址:192.168.1.1


Server: xyz Address: 192.168.1.1

得到的答案:标题:操作码=查询,id = 2,rcode = SERVFAIL标头标志:响应,想要递归,递归有效.问题= 1,答案= 0,权限记录= 0,其他= 0

Got answer: HEADER: opcode = QUERY, id = 2, rcode = SERVFAIL header flags: response, want recursion, recursion avail. questions = 1, answers = 0, authority records = 0, additional = 0

QUESTIONS:
    abc.com, type = A, class = IN

------------

得到的答案:标题:操作码=查询,id = 3,rcode = SERVFAIL标头标志:响应,想要递归,递归有效.问题= 1,答案= 0,权限记录= 0,其他= 0

------------

Got answer: HEADER: opcode = QUERY, id = 3, rcode = SERVFAIL header flags: response, want recursion, recursion avail. questions = 1, answers = 0, authority records = 0, additional = 0

QUESTIONS:
    abc.com, type = AAAA, class = IN

------------

得到的答案:标题:操作码=查询,id = 4,rcode = SERVFAIL标头标志:响应,想要递归,递归有效.问题= 1,答案= 0,权限记录= 0,其他= 0

------------

Got answer: HEADER: opcode = QUERY, id = 4, rcode = SERVFAIL header flags: response, want recursion, recursion avail. questions = 1, answers = 0, authority records = 0, additional = 0

QUESTIONS:
    abc.com, type = A, class = IN

------------

得到的答案:标题:操作码=查询,id = 5,rcode = SERVFAIL标头标志:响应,想要递归,递归有效.问题= 1,答案= 0,权限记录= 0,其他= 0

------------

Got answer: HEADER: opcode = QUERY, id = 5, rcode = SERVFAIL header flags: response, want recursion, recursion avail. questions = 1, answers = 0, authority records = 0, additional = 0

QUESTIONS:
    abc.com, type = AAAA, class = IN


*** xyz找不到abc.com:服务器出现故障


*** xyzcan't find abc.com: Server failed

我肯定它有些愚蠢.但是我为此花了太多时间,无法思考了.

Im sure its something dumb. But Ive spent too much time on this and cant think anymore.

我做错了什么?

感谢您的帮助.

推荐答案

甚至尝试在域记录和托管区域记录之间同步dns服务器名称.

even tried to sync the dns server names between the domain record and the hosted zone record.

如果有必要,那么听起来好像您删除并重新创建了托管区域……这与您预期的方式不符.

If that was necessary, then it sounds like at some point you deleted and recreated the hosted zone... which does not work the way you may have anticipated.

最简单的方法是:

完全保留现有区域,然后创建一个具有相同域的 new 托管区域.(是的,这可行).

Leaving the existing zone exactly as it is, create a new hosted zone with the same domain. (Yes, this works).

请注意为 new 托管区域分配的四个名称服务器.

Note the four name servers assigned for the new hosted zone.

转到域记录(Route 53的注册商组件,而不是托管区域组件),并更改4个名称服务器以匹配分配给您的新托管区域的服务器.

Go to the domain record (the registrar component of Route 53, not the hosted zone component) and change the 4 name servers to match those assigned to your new hosted zone.

在新的托管区域中,创建一个新的A记录,主机名框为空,Alias = Yes,然后选择ELB名称.

In the new hosted zone, create a new A record, hostname box empty, Alias = Yes, and select the ELB name.

一旦工作,请删除旧的托管区域.

Once it's working, delete the old hosted zone.

这篇关于Route 53别名记录不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆