简体   繁体   English

如何将 Netlify DNS 用于 AWS Route 53 管理的域?

[英]How to use Netlify DNS for domains managed by AWS Route 53?

I have a domain registered at Route 53, but I want to have Netlify manage the DNS for this domain (the entire domain, unlike other questions about subdomains).我在 Route 53 注册了一个域,但我想让 Netlify 管理这个域的 DNS(整个域,不像其他关于子域的问题)。 I set the NS record for the domain to point to Netlify's name servers, but Netlify's custom domain configuration tool still claims that DNS is not configured correctly.我将域的 NS 记录设置为指向 Netlify 的名称服务器,但 Netlify 的自定义域配置工具仍然声称 DNS 配置不正确。

Below is a screenshot showing my current Route53 hosted zone configuration, with the NS records clearly pointed at Netlify's DNS servers.下面是显示我当前 Route53 托管区域配置的屏幕截图,NS 记录清楚地指向 Netlify 的 DNS 服务器。 I waited for DNS propagation timeouts, flushed Google's DNS cache, and tried other suggestions and nothing worked.我等待 DNS 传播超时,刷新谷歌的 DNS 缓存,并尝试了其他建议,但没有任何效果。

在此处输入图像描述

The problem turned out to be that setting the NS records in the hosted zone doesn't actually let Netlify manage the DNS for the domain.问题原来是在托管区域中设置 NS 记录实际上并没有让 Netlify 管理域的 DNS。 Instead, you need to change the nameservers in the Registered Domains section of the Route 53 console.相反,您需要更改 Route 53 控制台的注册域部分中的名称服务器。 (NOT the Hosted Zones section.) (不是托管区域部分。)

在此处输入图片说明

On that page, remove the AWS nameservers and add Netlify's nameservers.在该页面上,删除 AWS 名称服务器并添加 Netlify 的名称服务器。 It will look like this when it's done: (Note that your nameserver hostnames may be different; copy them from Netlify's Custom Domain page)完成后看起来像这样:(请注意,您的域名服务器主机名可能不同;从 Netlify 的自定义域页面复制它们)

在此处输入图片说明

Kudos to Netlify's support team for writing a doc that explains how to do this.感谢 Netlify 的支持团队编写了解释如何执行此操作的文档 It was admittedly hard to find this doc in Google because there are so many different Netlify docs about various DNS intricacies.诚然,很难在 Google 中找到此文档,因为关于各种 DNS 复杂性的 Netlify 文档太多了。 But eventually Googling helped me find it.但最终谷歌搜索帮助我找到了它。

In retrospect, it's now obvious to me that adding DNS records to a zone (even NS records!) can't change the nameservers used by the domain.回想起来,现在对我来说很明显,将 DNS 记录添加到区域(甚至是 NS 记录!)不能更改域使用的名称服务器。 But it would have been nice if the AWS console included this info when I edited the NS records so I didn't waste a few hours.但是,如果 AWS 控制台在我编辑 NS 记录时包含此信息,那就太好了,这样我就不会浪费几个小时了。

Leaving this answer here for the next victim.把这个答案留在这里给下一个受害者。 😁 😁

For domain registered at Route 53 and Netlify managing the DNS. It worked for me by changing the name servers both from the "Registered Domain" area and "Hosted Zone".对于在 Route 53 注册的域和管理 DNS 的 Netlify。它通过从“注册域”区域和“托管区域”更改名称服务器对我有用。

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

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