CNAME and TXT type for same record.

0

For hosted zone name: example.com, under RecordSets I want to add xyz.example.com. I want it to be of type TXT and CNAME with different ResourceRecord values for each type.
How can I achieve this?

poorvaw
已提问 3 年前3358 查看次数
1 回答
0

For hosted zone name: example.com, under RecordSets I want to add xyz.example.com. I want it to be of type TXT and CNAME with different ResourceRecord values for each type.
How can I achieve this?

This is forbidden in DNS so Route 53 does not allow it. You may create either a CNAME (only) or a combination of any other record type at a single domain.
https://datatracker.ietf.org/doc/html/rfc1912#section-2.4

The way to think about CNAME records in DNS is as a sort of redirect or symlink "All record types for $DOMAIN are located at $OTHER_DOMAIN". For that reason, if you create a CNAME, you cannot also create a TXT record, but you can and likely should create the the TXT record at the domain to which the CNAME refers.

AWS
专家
gavinmc
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则