Route 53 DNS queries when CNAME points to an A record

0

My customer has significant number of requests trying to cost optimize.

In Route5 3 there is a CNAME xxx.yyy.com with TTL=300 pointing to zzz.yyy.com which is an A record with TTL=60 which points to IP. When clients on the web try to resolve xxx.yyy.com, will there be 2 DNS queries issued to Route 53 (adding two to billing) or there will be only one because route53 will follow CNAME at once? It’s also dependent on the client/ISP behavior and cache but what it will be 1 or 2 ?

They have thousands of such subdomains constantly being queried by millions of clients in certain geography, but each subdomain may be not as frequently queried as such short TTL. Increase of the TTL is not so good as they need to be able to quickly respond to unexpected change of IP.

I did tcpdump on port 53 from EC2 machine and I see only 1 request going out but I’m not sure if this is the right test.

AWS
질문됨 5년 전295회 조회
1개 답변
0
수락된 답변

R53 doesn't "follow" anything; it is the resolver that will resolve the initial CNAME and the subsequent A record, leading to two charges should both records be hosted on Route 53.

Your customer should look into making use of Alias records wherever they can if this is a concern to them.

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

AWS
답변함 5년 전
profile picture
전문가
검토됨 7달 전

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

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

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

관련 콘텐츠