What is TTL in DNS?
TTL (time to live) is a number of seconds published with every DNS record. It tells resolvers how long they may cache the record before asking the authoritative nameserver again. With a TTL of 3600, a resolver may reuse the answer for up to one hour.
example.com. 3600 IN A 192.0.2.10
Why lookup tools show different TTLs
A resolver reports the time remaining on its cached copy, which counts down. Two resolvers that cached the record at different times show different TTLs, and both are lower than the value you published. The authoritative server returns the full TTL.
Common TTL values
| TTL | Duration | Typical use |
|---|---|---|
| 300 | 5 minutes | Records you plan to change soon, or that support fast failover |
| 3600 | 1 hour | A common default for A, AAAA and CNAME records |
| 14400–86400 | 4 hours to 1 day | Stable records such as MX and TXT |
| 172800 | 2 days | NS delegation records in many top-level domains, such as .com |
Choosing a TTL
Short TTLs make planned changes visible sooner but generate more DNS queries and depend more on your nameservers being reachable. Longer TTLs reduce query load and keep working from cache during short outages, but extend the period during which an old answer can remain.
Lower the TTL before a change
- Note the current TTL, for example 86400.
- Lower it to 300 and wait at least the old TTL (here, one day).
- Make the change; resolvers now refresh within about five minutes.
- Raise the TTL again when the new setup is stable.
Negative caching and the SOA record
Resolvers also cache answers that say a name or record does not exist. The time comes from the zone's SOA record: the lower of the SOA record's own TTL and its minimum field (RFC 2308). If you look up a hostname before creating it, resolvers may keep reporting it missing for that long.
TTL is an upper bound, not a guarantee
Some resolvers apply their own minimum or maximum cache times, and operating systems and browsers keep short caches of their own. Check remaining TTLs on many resolvers at once with the DNS propagation checker, or read the DNS propagation guide.
Can a DNS checker force caches to update?
No. A checker can observe resolver answers but cannot expire a cache controlled by another network.
Should every resolver return the same result?
Not always. Cached changes, CDNs and geographic traffic management can produce different valid answers.
