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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인