Glossary
TTL (time to live)
Definition
TTL (time to live): The number of seconds a DNS record may be cached by resolvers before they must look it up again. It controls how long an old value can linger after you change a record.
Also known astime to liveDNS TTLrecord TTL
In short
TTL (time to live) is the number of seconds a DNS record may be cached before resolvers must look it up again. A record with a TTL of 3600 can be served from caches for up to an hour after you change it. Lower the TTL a day before a planned change, such as moving your MX record to a new mail provider, then raise it again once the change has settled.
Key takeaways
- The TTL is a caching limit in seconds, set per record in your DNS zone.
- A change reaches everyone only after the old record's TTL has run out in every cache.
- Lower the TTL at least one old TTL before a planned change, not at the same moment.
- Resolvers also cache "no such record" answers, so don't look a record up before you've added it.
Last reviewed 3 December 2026 by Foxcolab Team
A DNS TTL, short for time to live, is the number of seconds a DNS record may be kept in a cache before resolvers have to look it up again. RFC 1035 defines it as the time interval, in seconds, "that the resource record may be cached before it should be discarded." A TTL of 0 means the answer shouldn't be cached at all.
How it works#
Every record in your zone carries its own TTL. It's the number after the name:
example.com. 3600 IN MX 10 mx.mailhost.example.net.
example.com. 300 IN TXT "v=spf1 include:mailhost.example.net ~all"When a resolver looks up the MX record, it caches the answer for up to 3600 seconds, one hour, and serves that copy to everyone who asks. Change the record a minute later and that resolver keeps handing out the old one until its hour is up. RFC 2181 allows TTLs from 0 to 2147483647 seconds and lets resolvers cap very long ones.
A worked example: moving your mail#
Your MX record has a TTL of 86400, one day. You plan to move mail to a new provider on Thursday.
- Tuesday: lower the MX TTL to 300 seconds. Caches still hold the old answer for up to a day, which is why you start early.
- Thursday: change the MX record. Within about five minutes, senders everywhere use the new server.
- After a few days: raise the TTL back to 3600 or more, so lookups stay fast and cheap.
Common mistakes#
- Lowering the TTL and changing the record at the same moment. Caches are holding the old TTL, so the shorter one helps only next time.
- Looking a record up before adding it. Resolvers cache "no such record" answers too. Under RFC 2308, that negative answer lasts as long as your zone's SOA settings say, and the RFC suggests one to three hours. Add the record first, then check.
- Mixed TTLs on the same name and type. RFC 2181 says all records in a set must share one TTL. Many DNS hosts handle this for you.
- Blaming "propagation" for a typo. If one resolver shows the new value and the record still fails, check the value itself.
In Foxcolab#
When you connect a domain, the Domains tab lists the records to add, including an MX record, and asks you to remove other MX records so mail reliably arrives in Foxcolab Mail. Brand-new records usually show up quickly. A changed MX record can take as long as the old record's TTL, so lower it a day before you switch. Move your existing mail first with Move to Foxcolab, then follow the custom domain setup and the Google Workspace migration playbook.
Keep exploring
Related terms
- DNS (Domain Name System)DNS is the internet's directory. It turns a name like example.com into the records computers need, from a website's address to the servers that accept a domain's mail.
- MX recordAn MX record is the DNS entry that names the servers accepting email for a domain and sets the order in which sending servers try them.
- DNS TXT recordA TXT record is the DNS record that holds free-form text. Email authentication, DKIM keys and domain-verification tokens all live in TXT records.
- CNAME recordA CNAME record makes one DNS name an alias of another. It's handy for hosted services, but a name with a CNAME can't hold any other record.
- DNSSECDNSSEC signs DNS records so resolvers can tell a genuine answer from a forged one. Here's how the chain of trust works, what DNSSEC doesn't do and the mistake that takes domains offline.
- Domain verificationDomain verification is how a service confirms you control a domain before you can use it there, usually by asking you to publish a TXT record with a unique token.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.