DNS TTL: how long records are cached
DNS TTL, or time to live, is the number of seconds a resolver may cache a DNS record before it must ask again. A lower TTL makes changes spread faster but sends more queries to your nameservers, and a higher TTL does the opposite.
- TTL is in seconds: 300 is 5 minutes, 3600 is 1 hour, 86400 is 1 day.
- It counts down in each cache, so users see the change at different times.
- Lower the TTL before a planned change, then raise it again afterward.
What TTL values mean in practice
| TTL (seconds) | Time | Typical use |
|---|---|---|
| 60 | 1 minute | Failover records or an imminent migration |
| 300 | 5 minutes | Records you may change soon |
| 3600 | 1 hour | Common default for stable records |
| 86400 | 1 day | Rarely changing records such as NS or MX |
The values are common conventions, not a standard. Resolvers may shorten TTLs, and RFC 8499 allows a cache operator to do so. Providers set their own default and minimum.
How do you plan a DNS change around TTL?
- 01
Read the current TTL
Look up the record and note its TTL.
- 02
Lower it ahead of time
At least one old-TTL period before the change, drop it to something like 300 seconds.
- 03
Make the change
Update the record. Resolvers holding the old answer expire it within the lowered TTL.
- 04
Verify, then raise it
Confirm the new value from several locations and restore a longer TTL.
What do the standards say?
Common questions
What is a good DNS TTL?
For stable records, an hour (3600) is a common choice. Use 300 seconds or less when you expect to change a record or want fast failover. There is no single correct value; it trades change speed against query load.
Why does a DNS change not show up everywhere at once?
Each resolver cached the old answer at a different moment and holds it until its TTL runs out. This is usually called propagation, but it is cache expiry, not a push of the new record.
Does TTL zero disable caching?
RFC 1035 says a zero TTL means the record is used only for the current transaction and not cached. Some resolvers apply their own minimums, so very low values may not behave exactly as written.
Keep reading
See every DNS change in a history
DNS monitoring records each change to a domain's records and can email on every change or only risky ones.