简体   繁体   English

AWS Route53 公共区域名称服务器和记录类型 NS 记录

[英]AWS Route53 public zone name servers and record type NS records

For a AWS Route53 public zone created, I notice a default delegation set created with NS & SOA records.对于创建的 AWS Route53 公共区域,我注意到使用 NS 和 SOA 记录创建的默认委托集。 But the name servers at the zone and the NS record type seems to have a slight difference.但是该区域的名称服务器和 NS 记录类型似乎略有不同。 What I mean is:我的意思是: 在此处输入图像描述

I notice the name server records ending with a period as highlighted in the records section.我注意到名称服务器记录以记录部分突出显示的句点结尾。 But in the hosted zone details , there aren't any period that end the name server record.但在hosted zone details中,没有任何结束名称服务器记录的句点。 Why is it so, is there a difference that needs to be understood.为什么会这样,有什么区别需要理解。 Couldn't get any info from AWS?无法从 AWS 获取任何信息?

When I pull the record via terraform, it returns the ns records without the period.当我通过 terraform 拉取记录时,它返回没有句点的 ns 记录。 Currently there's no data resource support from terraform to pull the ns records from the records section.目前没有来自 terraform 的数据资源支持,无法从记录部分提取 ns 记录。

Can someone educate me pls.有人可以教育我吗? Thanks.谢谢。

The rationale behind why the records have a trailing period, and the hosted zone domain names no longer (as of provider version 3.0) have a trailing period in the data source can be best explained in the 3.0 upgrade guide :为什么记录有尾随句点以及托管区域域名不再(从提供商版本 3.0 开始)在数据源中有尾随句点的原因可以在3.0 升级指南中得到最好的解释:

Removal of trailing period in name argument删除名称参数中的尾随句点

Previously the data-source returned the Hosted Zone Domain Name directly from the API, which included a .以前,数据源直接从 API 返回托管区域域名,其中包括一个. suffix.后缀。 This proves difficult when many other AWS services do not accept this trailing period (eg ACM Certificate).当许多其他 AWS 服务不接受此尾随期(例如 ACM 证书)时,这被证明是困难的。 This period is now automatically removed.该句点现已自动删除。 For example, when the attribute would previously return a Hosted Zone Domain Name such as example.com.例如,当该属性以前返回一个托管区域域名时,例如example.com. , the attribute now will be returned as example.com . ,该属性现在将作为example.com返回。 While the returned value will omit the trailing period, use of configurations with trailing periods will not be interrupted.虽然返回值将省略尾随句点,但不会中断使用带有尾随句点的配置。

The trailing periods in the records are correct, and argument values in Terraform with trailing periods in this situation are automatically added or omitted on READ and WRITE operations to be completely accurate and convenient for the user.记录中的尾随句号是正确的,Terraform中带尾随句号的参数值在READ和WRITE操作时自动添加或省略,完全准确,方便用户使用。

The trailing period at the end of the name server records implies the domain name is fully-qualified.名称服务器记录末尾的句点表示域名是完全合格的。 It's similar to an absolute path in a file system: /users/ec2-user/ vs ~/ in a Linux OS or C:\Users\ec2-user on a windows OS.它类似于文件系统中的绝对路径: /users/ec2-user/ vs ~/在 Linux 操作系统或 C:\Users\ec2-user 在 windows 操作系统。 It's generally best practice to leave the trailing period.离开尾随期通常是最佳做法。 You can read more about this concept here: http://www.dns-sd.org./trailingdotsindomainnames.html您可以在此处阅读有关此概念的更多信息:http://www.dns-sd.org./trailingdotsindomainnames.html

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

相关问题 如何在 AWS Route 53 托管区域中使用 Google 名称服务器 - How to use Google Name Servers in AWS Route 53 Hosted Zone 基于先前配置的 Kube.netes 服务的 AWS ELB 从 CI 动态创建 Route53 托管区域 A 记录 - Create Route53 hosted zone A record dynamically from CI based on previously provisioned Kubernetes Service' AWS ELB Ansible 删除 AWS Route53 TXT 记录 - Ansible Deleting AWS Route53 TXT records Terraform 多个 AWS route53 MX 记录 - Terraform multiple AWS route53 MX records 如何通过aws cli删除Route53中的一条DNS记录? - How to delete a DNS record in Route53 via aws cli? AWS Route53 记录创建“DomainLabelTooLong”错误 - AWS Route53 record creation "DomainLabelTooLong" Error 是否可以使用 Java AWS API 更新 Route53 记录? - Is it possible using the Java AWS API to update a Route53 record? locals下terraform多个aws route53别名记录 - terraform multiple aws route53 alias records under locals “找不到匹配的 Route53Zone”:Terraform 的 Route53 数据源无法识别托管区域名称 - "no matching Route53Zone found": Terraform's Route53 data source is not recognizing the hosted zone name 为什么在 Terraform aws_route53_record 中出现错误“别名目标名称不在目标区域内”? - Why error, "alias target name does not lie within the target zone" in Terraform aws_route53_record?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM