DNS TTL Calculator
Convert a raw DNS TTL (time-to-live) value between seconds and a human-readable format, build a TTL from days/hours/minutes, and use the migration planner to know exactly when to lower your TTL before a record change — so you do not strand visitors in stale caches.
How to use the DNS TTL Calculator
There are three ways to use this tool:
- Seconds → human readable: Type a TTL value (in seconds) into the TTL in seconds field. The output instantly shows it broken down into days, hours, minutes, and seconds, plus common-sense context.
- Duration builder: Enter days, hours, and minutes to construct a TTL. The equivalent seconds value is shown so you can paste it directly into your DNS zone file or provider's UI.
- Migration planner: Enter your current TTL (the TTL the record has right now) and the target TTL you want after the change. The planner tells you: (a) how far in advance to lower the TTL so that all resolvers' caches expire before you make the actual record change, (b) when to make the change, and (c) how long to expect before the new record is fully propagated based on the target TTL.
The key insight for migrations: DNS resolvers cache a record for exactly the TTL value they received. So before changing a high-TTL record, you must lower the TTL and wait at least one full old-TTL period for all caches to refresh and pick up the shorter TTL. Only then make the actual value change.
What is DNS TTL and why does it matter?
TTL (Time To Live) is an integer field on every DNS resource record that tells resolvers how many seconds they may cache the record before they must re-query the authoritative nameserver. A TTL of 3600 means resolvers cache the answer for one hour; a TTL of 300 means five minutes. The value travels with the record — every resolver that caches it also stores when it expires, and the clock starts when the resolver first fetched the record, not when you changed it.
The TTL is a tradeoff between propagation speed and nameserver load. A very low TTL (60–300 s) means changes propagate quickly (within minutes), but every resolver must re-query your nameserver far more frequently, increasing DNS query volume. A high TTL (86400 s = 1 day or more) reduces query load but means changes take up to that TTL to be visible everywhere. For most production domains, 3600 s (1 hour) is a sensible default. Reduce to 300 s in the hours before a planned record change, then restore after propagation is confirmed.
One important nuance: there is no global "DNS propagation delay." Propagation means "waiting for cached records at all resolvers to expire." Different resolvers fetched the record at different times, so the worst-case propagation time is one full TTL period, not some fixed worldwide window. The 24–48 hour figure you sometimes hear is a legacy from when many registrars had 24-hour SOA refresh intervals — it does not reflect actual resolver caching behavior for records with shorter TTLs.
Common use cases
- Pre-migration TTL lowering — Calculate when to reduce a high-TTL A record before migrating to a new server IP, ensuring the change is live everywhere within minutes.
- Failover planning — Determine how quickly a low-TTL record propagates so you can estimate recovery time for automated DNS failover scenarios.
- Zone file authoring — Convert human-readable durations (2 days, 6 hours) to the raw seconds expected by BIND zone files and most DNS APIs.
- Explaining TTL to stakeholders — Quickly translate a seconds value into plain English so non-technical stakeholders understand why a record change is not instant.
- SOA record tuning — The SOA record contains a minimum TTL for negative caching (NXDOMAIN responses). Use the calculator to find the right balance for domains with frequent subdomain additions.