What Is DNS TTL and What Value Should You Set?
TTL decides how long resolvers may keep a DNS answer. Here is how to choose a sensible value, when to lower it, and why changes do not always appear at once.
10 min readUpdated Nov 19, 2026By XPASS Editorial Team

Every time you change a DNS record, you expect the internet to notice. Sometimes it does within minutes. Other times a colleague on another network sees the old website for hours while you see the new one. The setting that explains most of that difference is the TTL, or time to live. It is a small number attached to every DNS record, and understanding it turns many mysteries into predictable behaviour.
This article explains what TTL is, how caches use it, what values are common, how to plan changes around it, and where its limits are. It is written for site owners and administrators, and each recommendation can be applied in a DNS control panel.
What TTL is
DNS answers are not looked up from scratch every time. When your phone asks for the address of example.com, the question normally goes to a resolver, often run by your internet provider or a public DNS service. If the resolver already knows the answer from a recent lookup, it replies from its memory. If not, it asks the authoritative servers for the domain and then remembers the reply.
TTL tells the resolver how long it may remember. The number is in seconds. A record with TTL 300 may be reused for five minutes; one with TTL 86400 may be reused for a day. When the time runs out, the resolver discards the answer and asks again at the next request.
The idea is part of the original design of DNS in RFC 1034 and RFC 1035, where the TTL field is part of every resource record. For a gentle overview of resolvers and caching in general, see Cloudflare's explanation of DNS.
Two features of TTL surprise people at first.
- TTL is set by the record owner but obeyed by others. You choose the number; resolvers decide whether to respect it. Most do, but not perfectly.
- The countdown starts when the cache learns the answer, not when you edit the record. A resolver that cached the record one minute before your change will keep the old answer for as long as its remaining time allows.

The trade-off behind the number
Choosing a TTL means balancing two things.
| TTL | Advantage | Disadvantage |
|---|---|---|
| Short (for example 60 to 300 seconds) | Changes show up quickly; easy to switch servers | More lookups; slightly more load on DNS servers; a little extra delay when an answer expires |
| Medium (for example 1 to 4 hours) | A reasonable middle ground for many records | Changes take up to that long to be seen by everyone |
| Long (for example 1 day or more) | Fewer lookups; resilient if DNS is briefly unavailable | Mistakes and moves take a long time to take effect |
A short TTL is not "better" and a long TTL is not "worse". Short values make sense when change is expected. Long values make sense when stability is the goal.
There is also a practical effect on visitors. When a cached answer expires, the next lookup has to travel to the authoritative servers, which adds a small delay. With a very short TTL, that happens often. For a busy site with a reliable DNS host, the effect is minor, but it is one reason not to drop everything to a few seconds without a reason.
Common values and when to use them
There is no official standard value, but certain numbers are widely used.
- 300 seconds (5 minutes). Common for records you are about to change, for records that point at something that moves, and for testing a new setup.
- 1800 or 3600 seconds (30 minutes or 1 hour). A frequent default at DNS hosts. A good balance for many ordinary records.
- 14400 seconds (4 hours). Reasonable for stable records where you want fewer lookups but still some flexibility.
- 86400 seconds (1 day). Appropriate for records that almost never change, such as long-standing mail or verification records.
Different record types have different rhythms.
- A and AAAA records for the main website. Medium values work well day to day, and short values just before a move.
- MX records. These rarely change, but a wrong value costs you incoming mail, so lower the TTL well before changing email providers and keep the old mailboxes available until new mail is arriving correctly.
- TXT records for verification and policies. Values are usually stable, so medium or long TTLs are fine, though shorter values help while you are still testing.
- SRV records. These point software to services and ports; the guide to SRV records shows how they behave. Moderate values suit them, shorter if you expect to move the service.
- CAA records. They are consulted only at issuance, so TTL matters little, except that a mistaken record should be fixable quickly. A moderate value is sensible; see CAA records and SSL issuance.
Planning a change around TTL
The most useful habit is to treat TTL as part of the plan for any move, whether you are changing web hosts, switching email providers or pointing a subdomain at a new service.
- Look up the current TTL. Your DNS panel shows it for each record. Note the value.
- Lower the TTL in advance. Change it to something short such as 300 seconds. Do this at least as long before the change as the old TTL, because caches holding the old record need that time to expire. If the old value was one day, lower it two days ahead to be comfortable.
- Make the actual change. Edit the record to the new value. Caches will now refresh within about the short TTL.
- Test. Check from several places and networks. Remember that your own device may have its own small cache.
- Keep the old service running. Leave the old server or mailbox active for a while, so any visitors still using the old answer are served.
- Raise the TTL again. Once everything is stable, return to a medium or long value to cut unnecessary lookups.
- Record the plan. Write down the old and new values and the dates. If something goes wrong, you know what to undo.
If you want to see how a registrar or DNS host lets you edit these values, the domains page is a place to start.
A worked example
Marcus owns a small online shop whose website is moving to a new hosting company on Saturday morning. The record for www currently has a TTL of 86400 seconds, one day.
If he changes the address on Saturday without preparing, some visitors could keep seeing the old server for up to a day. So on Thursday he lowers the TTL on the www and root address records to 300. By Friday, every cache that had stored the old record has let it expire, and new lookups use the short value.
On Saturday morning he updates the addresses to point to the new host. Within roughly five to ten minutes, most visitors are directed to the new server. He leaves the old server running until Saturday evening for the stragglers. On Sunday, after confirming that orders arrive normally, he raises the TTL back to 3600 seconds.
If he had left the TTL at one day, the migration would still have worked, but he would have had to keep both servers running much longer and could not have easily corrected a mistake.
Why changes do not always appear at once
People often blame "propagation", as if the record travels from place to place. In fact, nothing is pushed. Each cache simply expires its copy on its own schedule. This is why different people see different answers during a change, as discussed in the article on how long DNS propagation takes.
Other reasons for lingering old answers:
- Resolvers that ignore or stretch TTLs. Some caches enforce a minimum or maximum value of their own.
- Local caches. Your operating system and browser may keep their own short-lived copies.
- Applications that hold connections open. A long-running program may continue to use an address it looked up earlier.
- Negative caching. If a name did not exist when a resolver first looked it up, that "does not exist" answer is also cached for a time, controlled by the zone's start-of-authority settings.
- Changes at the registrar level. Name server changes follow the registry's own timing and are not governed by a record's TTL.
Reading TTL in practice
You rarely need special tools to see TTL at work. Most DNS control panels show the number next to each record. Command-line lookup tools and many web-based lookup pages also display the remaining TTL of an answer. If you query a public resolver twice a few minutes apart, you will often see the number counting down, because the resolver is reporting how much time is left on its cached copy. When it reaches zero and a fresh lookup is made, the number jumps back up to the value you configured.
This countdown is a useful way to confirm what is happening. If you changed a record and a resolver still shows the old answer with a large remaining TTL, you know it has not yet refreshed. If it shows the new answer with a TTL near your configured value, the refresh has already happened. Comparing two networks in this way tells you whether a problem is in your record or simply in someone else's cache.
A final practical point: some DNS hosts apply a minimum TTL or a default TTL when you leave the field blank. If you are surprised by how long a change takes, check what number was actually saved, rather than assuming it matches what you intended.
Limits and what to watch for
There is no perfect value. The right TTL depends on how often the record changes and how much a delay would cost you.
Very short values are not a cure. Setting everything to a few seconds does not make changes instant for everyone, because some caches enforce minimums, and it increases lookups unnecessarily.
Very long values are risky for records that matter. If a wrong address is cached for a day, that is how long the damage lasts.
TTL does not control propagation of name server changes. Switching the name servers for the domain is a different process.
Do not guess; check. After any change, look up the record from more than one place. Different networks may show different answers for a while.
Consistency within a set. All records in a set, such as several A records for the same name, should share the same TTL. Resolvers may treat mismatched values oddly.
A short checklist
- I know the current TTL of the record I plan to change.
- I will lower it at least as long before the change as the old value.
- I will keep the old service running until the new one is proven.
- I will test from more than one network.
- I will raise the TTL again when things are stable.
- I wrote down the old values and the plan.
Summary
TTL is the number of seconds that resolvers and other caches may keep a DNS answer. Short values make changes visible quickly but add lookups; long values reduce lookups but slow down moves and corrections. Typical choices run from five minutes for records about to change to one day for records that almost never do. Plan changes by lowering the TTL ahead of time, changing the record, testing from several places, keeping the old service for stragglers, and raising the value again afterwards.
When you are ready to manage records like these on your own name, the domains page shows what is available.
Frequently asked questions
What does TTL mean in DNS?
TTL stands for time to live. It is a number of seconds attached to a DNS record that tells resolvers and other caches how long they may reuse the answer before asking again. A short TTL means changes are noticed sooner; a long TTL means fewer lookups.
What TTL value should I use?
For most records that rarely change, a value in the range of one hour to one day is common. For records you expect to change soon, a short value such as five minutes is typical. There is no single correct number, because it is a trade-off between speed of change and the number of lookups.
Should I lower the TTL before moving my website or email?
Yes, it usually helps. Lower the TTL at least as long as the old value in advance, so that caches holding the old record expire before the change. After the move works, you can raise it again.
Why do some people still see the old address after I changed a record?
Their resolver or device may still be holding the old answer until its TTL runs out. Some systems also keep answers a little longer than requested. Waiting, and checking again, is usually the only remedy.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Ready to register your domain?
Search a name, compare extensions and pay once for the years you choose.
.com registration from $18.81 for the first year
Search domainsKeep reading

Domain & DNS Guides
What Is an SRV Record and Which Systems Use It?
An SRV record names the server and port that offer a particular service for your domain. Here is what its fields mean, who uses it, and how to set it up carefully.
10 min read

Domain & DNS Guides
How Long Does DNS Propagation Really Take?
DNS propagation is mostly a matter of caches expiring. See what controls the wait, how to check each layer, and how to plan changes so visitors notice nothing.
10 min read

Domain & DNS Guides
What Is a CAA Record and How Does It Control SSL Issuance?
A CAA record lets you name the certificate authorities allowed to issue SSL certificates for your domain. Here is how it works and how to avoid locking yourself out.
10 min read