What is a DNS TTL, and what do short and long values trade off?
Sketch your own answer first, then compare it with the one below.
A strong answer
The TTL is the number of seconds a cache may reuse a record. After that it must ask again.
A long TTL means fewer queries to the authoritative servers, faster lookups for users, and slower spread of a change. A short TTL means a change reaches users sooner and costs more queries and more lookup waits.
You choose the value before you need to change the record, because a cached answer cannot be recalled.
Sources
- Paul Mockapetris (1987). RFC 1034: Domain Names, Concepts and Facilities.
- Paul Mockapetris (1987). RFC 1035: Domain Names, Implementation and Specification.