大网数据广告活动
服务器运维问答

AWS Route 53 CNAME - dot at end of target value or not?

· 52CE 我爱测

My hosted zone at AWS seem to be working fine so I am a little nervous about changing it -- but I noticed that my CNAME record for my white-label DNS looks like this right now (no trailing dot): *.localroute.net. CNAME localroute…

问题原文

原帖链接 · C C · CC BY-SA 3.0

My hosted zone at AWS seem to be working fine so I am a little nervous about changing it -- but I noticed that my CNAME record for my white-label DNS looks like this right now (no trailing dot):

*.localroute.net.    CNAME    localroute.net    -    -    172800

Is this working correctly because the system is smart enough not to append another "localroute.net" to the value? Or should I just go ahead and add the dot at the end so it looks like this:

*.localroute.net.    CNAME    localroute.net.    -    -    172800

Also, am I correct in saying that if I want one domain to map to another via CNAME then the format must have the dot at the end, to avoid ambiguity? E.g.:

www.example.net.    CNAME    example.com.    -    -    172800

Thanks for any insight you could give me on this, I want my DNS to be perfect :-)

已采纳解答

原帖链接 · Håkan Lindqvist · CC BY-SA 3.0

From the Route 53 documentation on record values:

CNAME — Canonical name
The fully qualified domain name (for example, www.example.com) that you want Amazon Route 53 to return in response to DNS queries for this resource record set. A trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.


However, even if you had been dealing with an administration interface that is not as clearly documented, you could just try it and see how the values are used before doing your actual changes (obviously doing the testing well separated from anything used for production).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-07-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。