Every DNS record carries a small number that decides how long the rest of the internet remembers it. Change your hosting, your email provider or your IP address, and that number decides whether the world sees the change in five minutes or keeps following the old record for a day. It is the TTL, and most people only learn it exists on the day a change refuses to show up.
This guide explains what TTL means, where it sits inside a record, and how to choose a value. You can read any record's TTL with the free DNS Record Formatter and Explainer on Ovatly: paste the record in, and the tool explains it field by field.
Contents
- Quick answer
- Where TTL sits in a DNS record
- What the number actually controls
- How to read a TTL with the formatter, step by step
- Worked example: the 300 in a shop record
- Choosing a TTL: fast changes versus stable records
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
TTL (time to live) is the field in a DNS record that says how many seconds resolvers may cache the answer before asking again. In shop.example.com. 300 IN A 203.0.113.10, the TTL is 300: five minutes. Use a low TTL such as 300 in the days before a planned change so the switch spreads fast, and a longer one such as 3600 to 86400 for records that rarely change. To read the TTL of any record, paste it into the DNS Record Formatter and Explainer and look at the field breakdown; the change itself is made at your DNS provider.
Where TTL sits in a DNS record
A DNS record is one line of fields, and TTL is the second one. Take the example record:
shop.example.com. 300 IN A 203.0.113.10
Read left to right, the fields are: the name (shop.example.com.), the TTL (300), the class (IN, for internet), the type (A), and the value (the IPv4 address 203.0.113.10). The same layout holds for the other record types the formatter recognises: A, AAAA, CNAME, MX, TXT, NS, SOA, SRV, CAA and PTR. Paste a line from dig output or a zone file, in either field order, and the tool explains each field and validates the values.
That position matters because TTL is easy to overlook: the eye goes to the address at the end of the line, while the modest number in the middle quietly decides how long it stays in force.
What the number actually controls
When someone visits your site, their resolver looks up the record and caches the answer. For the next TTL seconds, every repeat lookup is answered from that cache without contacting your DNS provider. When the TTL expires, the next lookup fetches a fresh copy.
So TTL is a trade between freshness and traffic. A short TTL means changes appear quickly, but resolvers come back often, so your authoritative DNS answers more queries. A long TTL means fewer queries and slightly faster repeat lookups, but a changed record can linger in caches until the old value ages out.
The units catch people out. TTL is always seconds, never minutes: 300 is five minutes, 3600 is one hour, 86400 is one day. Typing 5 when you mean five minutes sets a five-second cache.
How to read a TTL with the formatter, step by step
- Copy the record line from your DNS provider's panel, a zone file, or dig output.
- Open the DNS Record Formatter and Explainer and paste the line in.
- Read the field-by-field explanation and find the TTL field, stated in seconds.
- Check the value against what you intended, and decide whether it gives you the propagation speed you need.
- Make any change at your DNS provider, then paste the edited record back into the tool to confirm the new line is valid and the TTL is the one you meant.
Worked example: the 300 in a shop record
The example record shop.example.com. 300 IN A 203.0.113.10 points the shop subdomain at the address 203.0.113.10, with a TTL of 300 seconds.
Suppose the shop moves to a new host at 203.0.113.20 and you edit the record. Because the TTL is 300, every resolver holding the old answer must drop it within five minutes, and the new address is in worldwide use shortly after. Had the TTL been 86400, some resolvers would keep handing out the old address for up to a full day, and visitors would reach a server you may have switched off.
That is the whole practical meaning of the number: 300 bought a fast move. The cost, paid every day the record sits unchanged, is that resolvers re-ask far more often than they would with a longer value.
Choosing a TTL: fast changes versus stable records
There is no single correct TTL, only a correct one for what happens next. The working pattern most operators use:
- Before a planned change: lower the TTL to 300 a day or two ahead of time. Lowering it at the moment of the change does not help, because caches still hold the old record under the old, longer TTL. The low value has to be in place early enough for the previous value to expire everywhere.
- During the change window: keep it at 300 while you verify the new setup, so a rollback is just as fast if something is wrong.
- Once things are stable: raise it to 3600, 14400 or 86400. Records that will not move for months gain nothing from a five-minute memory, and longer caching trims query load.
Email records deserve the same thought: an MX record with a day-long TTL makes an email migration slow to take effect, so lower it first before moving mail.
Limitations and honest tradeoffs
The formatter reads only what you paste. It never queries live DNS, so it cannot tell you what TTL the world currently sees for your domain, whether your provider has published your edit, or whether a resolver somewhere is misbehaving.
TTL also cannot force instant change. Some resolvers ignore very short TTLs or cap how low they honour, so even a 300 is a strong expectation, not a guarantee to the second. And raising a TTL never speeds up a change already in progress: caches keep the value they were given when they cached the record.
Finally, the tradeoff is real in both directions: a permanently low TTL is extra query traffic forever, bought to solve a problem that only exists on change days.
Common mistakes
- Lowering the TTL at the same moment as the change. The old long TTL is already sitting in caches. Lower it a day or two before.
- Reading TTL as minutes. The field is seconds. 60 is one minute, and 5 is five seconds.
- Forgetting to raise it again. A record left at 300 after a migration means needless queries indefinitely.
- Assuming one TTL fits every record. A stable NS record and a soon-to-move A record want different values.
- Trusting a pasted record as the live one. The formatter explains what you paste; confirm the paste matches your provider's current record before drawing conclusions.
FAQs
What does TTL stand for in DNS? Time to live. It is the number of seconds a resolver is allowed to cache a DNS record before it must ask the authoritative server again. A TTL of 300 means the answer may be reused for five minutes.
Where do I find the TTL of a record? It is one of the fields in the record line itself, sitting between the name and the class and type. Paste the record into the DNS Record Formatter and Explainer and it breaks the line into its fields so you can read the TTL directly.
What TTL should I use before moving a site to a new host? Drop it to 300 a day or two before the move, so caches around the world expire quickly and pick up the new record soon after you change it. Once the move has settled, raise it back to 3600 or higher.
Does a longer TTL make my website faster? Only in a small way. A longer TTL means repeat visitors are more likely to get the address from a cache instead of a fresh lookup, which saves one quick query. It does not change how fast your server or pages load.
Can this tool change my TTL? No. The formatter reads and explains records you paste, and it never queries live DNS or touches your provider. Changing a TTL is done in your DNS provider's control panel.
Conclusion
TTL is the quiet field that decides how fast any DNS change takes effect: seconds of caching, chosen per record, lowered before a move and raised when life is stable. Paste any record into the DNS Record Formatter and Explainer to see its TTL in plain words before you rely on it. The natural companion question is which record type should carry your traffic in the first place, and our CNAME vs A record comparison walks through that choice. For more in this series, see the Website and Webmaster Tools guides.
References
- Cloudflare Learning Center, on what TTL means in DNS records: https://www.cloudflare.com/learning/dns/dns-glossary/time-to-live-ttl/
- RFC 1035, the DNS specification that defines the record format and the TTL field: https://www.rfc-editor.org/rfc/rfc1035