What is TTL?

The duration in seconds that a DNS record can be cached before it must be refreshed.

Detailed Explanation

TTL controls how long DNS resolvers and browsers can cache a DNS record before querying the authoritative server again. Lower TTLs mean more frequent updates but increased DNS traffic and slower performance. Higher TTLs improve performance but delay propagation of changes. A common practice is to lower TTL before planned changes, then raise it again afterward.

Examples

  • 3600 seconds (1 hour) - Common for stable records
  • 300 seconds (5 minutes) - Before making DNS changes
  • 86400 seconds (24 hours) - Very stable, rarely changing records