Picking a TTL in practice
DNS Time to Live (TTL): Why Changes Take Time to Show Up
Every DNS record on a domain carries a TTL -- time to live -- expressed in seconds. It's an instruction from the domain's authoritative nameserver to every resolver that fetches the record: "you may reuse this answer for this long before asking again." A 300-second TTL means a resolver that just looked up a domain won't bother asking again for five minutes, even if the record changes in the meantime.
The tradeoff TTL is balancing
A longer TTL means fewer DNS queries, faster average lookups (since more requests get served from cache), and less load on the authoritative nameservers. A shorter TTL means a change to the record propagates faster, at the cost of more frequent queries. There's no universally correct value -- it depends on how often the record is expected to change and how tolerant the situation is of stale answers.
What actually happens during a change
Updating a DNS record doesn't push the change out to every resolver on the internet. It just changes what the authoritative nameserver will say the next time it's asked. Every resolver that already cached the old answer keeps serving it until its cached copy's TTL expires -- which is why the same domain can briefly resolve to different addresses depending on which resolver, and which cache, is answering.
- A common practical move before a planned migration is to lower the TTL a day or two ahead of time, so the eventual cutover propagates faster.
- After the migration, the TTL is typically raised back to its normal value.
- A record with no recent changes and a long TTL can still take that full TTL window to fully clear out of caches worldwide once it does change.
Picking a TTL in practice
| TTL | Good fit for | Tradeoff |
|---|---|---|
| 60-300 sec | Active migrations, load-balanced endpoints | Fast propagation, much higher query volume |
| 3,600 sec (1 hr) | Most ordinary A/AAAA/CNAME records | Reasonable balance for records that occasionally change |
| 86,400 sec (24 hr) | MX, NS, and other rarely-touched records | Fewer queries, but a change here takes a full day to fully clear |
Negative answers get cached too, which is easy to overlook. When a domain doesn't exist, the NXDOMAIN response itself is cached, governed by a separate value (the SOA record's minimum TTL, not the TTL of a record that was never there to begin with). A newly registered domain can sometimes appear not to resolve for a short window afterward simply because a resolver had already cached its NXDOMAIN from before the registration completed.
TTL is a request, not a guarantee
It's worth knowing that a TTL is advisory, not enforced by any outside authority. A resolver is technically free to cache an answer for longer than the stated TTL (some do, under heavy load, to reduce query volume) or to evict it sooner (a resolver low on memory can drop cache entries early). In the overwhelming majority of cases, well-run public and ISP resolvers honor TTLs closely and predictably -- but it's the reason a propagation estimate based on TTL is a strong rule of thumb rather than a hard, contractual guarantee. If a change still hasn't shown up meaningfully past the old TTL window, an unusually aggressive intermediate cache is one of the less common but real explanations worth keeping in mind.
If you're verifying that a DNS change has gone live, a single lookup only tells you what one resolver currently has cached. Re-running the lookup a few minutes apart -- or scheduling a recurring check -- is a much more reliable way to confirm a change has actually propagated rather than catching a stale cached answer once and assuming it's final.
Need to check a domain's public DNS addresses? Use the Domain IP Lookup tool.
Free tools for this topic
Related reading
Two addressing schemes, running side by side
IPv4
192.0.2.10
32 bits -- ~4.3 billion addresses -- exhausted
IPv6
2606:4700::6810:84e5
128 bits -- 340 undecillion addresses
What Is an AAAA Record? Examples and A vs. AAAA Differences
An AAAA record maps a domain to an IPv6 address. See an AAAA record example next to an A record (IPv4) example, how the two differ, and why checking both matters.
A recursive DNS lookup, one hop at a time
Browser
wants example.com
Resolver
your ISP / 1.1.1.1
Root + TLD
who runs .com?
Authoritative
the real answer
Every hop down this chain is itself a DNS lookup, cached afterward
What Is DNS? A Beginner's Guide to Domain Name Resolution
A plain-language walkthrough of the Domain Name System -- what happens between typing a domain and your browser connecting to a server.
Three layers share the name "DNS server"
Stub resolver
your own device
Recursive resolver
ISP, router, or 1.1.1.1
Authoritative
the domain's own DNS
Domain IP Lookup: Find IPv4 and IPv6 Addresses
Understand domain IP address lookup results, including multiple addresses, IPv4 and IPv6 records, CDN edges, and the limits of reverse attribution.