What is TTL?

TTL (Time To Live) is the number of seconds a DNS record may be cached before resolvers must fetch a fresh copy.

TTL, short for Time To Live, is a value attached to every DNS record that tells resolvers how many seconds they may cache the answer before discarding it and querying the authoritative server again. It is the throttle that balances DNS performance against how quickly changes take effect.

A high TTL, such as 86400 seconds (one day), means resolvers cache the record for a long time. This reduces query load and speeds up lookups, but it also means any change you make can take up to that full duration to be seen everywhere, because cached copies keep serving the old value until they expire.

A low TTL, such as 300 seconds (five minutes), makes changes propagate quickly at the cost of more frequent queries. The common best practice before a planned migration is to lower the TTL well in advance, make the change, confirm it, and then raise the TTL back up for efficiency.

For email operations, TTL matters whenever you edit MX, SPF, DKIM, or DMARC records. Understanding TTL prevents the frustration of editing a record correctly and wondering why mail still behaves as before - old cached values are simply still in effect until the TTL expires.

Examples

  • TTL 3600 - the record may be cached for one hour before refreshing
  • TTL 300 - a short value set before a migration so changes propagate fast
  • Lowering TTL a day before switching mail providers, then raising it afterward

Common questions

What TTL should I use?
Use a moderate TTL like 3600 seconds for stable records, and lower it to 300 seconds before planned changes so updates propagate quickly. Raise it again once the change is confirmed.
Why is my DNS change not showing up?
Cached copies with the old TTL are still being served. You must wait for the previous TTL to expire; if it was set high, the wait can be up to a day even though your edit is already live at the authoritative server.
Does TTL affect email delivery?
Indirectly. When you change MX, SPF, DKIM, or DMARC records, the old values remain cached until their TTL expires, so a high TTL can delay when your authentication or routing changes take effect.

Related tools

Related terms for TTL