What Is TTL (Time to Live) in DNS?
TTL (time to live) is a number, in seconds, attached to every DNS record that tells resolvers how long they are allowed to keep serving a cached copy of it before asking the authoritative nameserver again. A short TTL means changes take effect everywhere faster but generates more lookup traffic; a long TTL reduces lookup traffic but makes any future change take longer to fully roll out. It is the main factor behind how long DNS propagation delays last after a record is updated.
What TTL actually controls
Every DNS record type, A, AAAA, CNAME, MX, TXT and the rest, carries its own TTL value measured in seconds. When a resolver looks up a record for the first time, it stores the answer in its cache along with that TTL, counting down from the moment it was fetched. Any further request for the same record during that window is answered instantly from cache, without contacting the authoritative nameserver at all, which is what makes DNS fast for the billions of lookups that happen every day.
Typical TTL values and what they mean
| TTL | In plain terms | Common use |
|---|---|---|
| 300 seconds | 5 minutes | Right before or during a planned change |
| 3600 seconds | 1 hour | A reasonable balance for most records |
| 14400 seconds | 4 hours | Stable records that rarely change |
| 86400 seconds | 24 hours | Very stable records, default on many DNS providers |
There is no universally "correct" TTL; it is a trade-off between how quickly future changes can take effect and how much repeat lookup traffic the authoritative nameserver has to handle.
Checking a record's current TTL
dig example.com A
;; ANSWER SECTION:
example.com. 3600 IN A 203.0.113.10
The number shown, here 3600, is the TTL in seconds remaining on that particular cached answer at the resolver you queried; it counts down toward zero and resets once the resolver fetches a fresh copy.
When to change a TTL
- Before a planned migration or IP change: lower the TTL on the affected record a day or two ahead of time, so fewer resolvers are still holding a long-lived cached copy when you make the switch.
- After the change is confirmed working: raise the TTL back to a normal value, since leaving it very low permanently adds unnecessary lookup load with no ongoing benefit.
- For records you rarely touch, such as a long-standing MX or TXT record, a longer TTL of several hours or a day is usually fine and reduces load on the nameserver.
Frequently asked questions
What does TTL stand for in DNS?
TTL stands for time to live. It is the number of seconds a DNS resolver is allowed to cache a record's answer before it must ask the authoritative nameserver again for a current value.
What happens if I set a TTL too low?
A very low TTL, such as a few seconds, means resolvers have to query your authoritative nameserver far more often, adding load and slightly increasing average lookup time, with no benefit once you are not actively making changes.
What happens if I set a TTL too high?
A very high TTL, such as several days, makes future changes to that record take much longer to fully reach every resolver, since cached copies stay valid and get served well after you update the record.
How do I lower TTL before a website migration?
Edit the relevant DNS record in your DNS management panel and set its TTL field to a low value, such as 300 seconds, at least one full TTL cycle (the current TTL's duration) before you plan to make the actual change.
Does TTL affect how long it takes for a new domain to start working?
Not usually for a brand-new record with no prior cached value, since there is nothing old to expire. TTL matters most when changing an existing record that resolvers have already cached.
Is TTL the same for every DNS record on a domain?
No. Each individual record, such as the A record, MX record and TXT record, can have its own separate TTL value, so one record can be set to refresh quickly while another stays cached for a full day.
Related topics
- What Is DNS (Domain Name System)? Domains & DNS
- Nameservers Explained Domains & DNS
- DNS Propagation Explained Domains & DNS
- A Record vs. CNAME Record Domains & DNS
- What Is a DNS TXT Record? Domains & DNS