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

7,713

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).

Share:
7,713

Related videos on Youtube

C C
Author by

C C

Updated on September 18, 2022

Comments

  • C C
    C C almost 2 years

    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 :-)

  • C C
    C C almost 7 years
    Thank you, Håkan. And darn it, I did try to research and find the answer myself first because I realize that is what the good people here expect. I appreciate the help.
  • psycho brm
    psycho brm almost 6 years
    There is a little explanation for the trailing dot here: dns-sd.org/trailingdotsindomainnames.html