Toolvito

Works on this device

DNS TTL Calculator

Work out what a DNS TTL means in time: convert it, see the latest time a resolver can still give an old answer after you change a record, or plan when to lower the TTL before a move.

Enter your values

Turn a TTL in seconds into hours and days, or a TTL such as 1h30m into seconds.

Your values

Seconds such as 3600, or BIND units such as 1h, 1h30m, 2d or 1w.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use the calculator

  1. Choose what you want to work out: convert a TTL, see when old answers run out, or plan a lower TTL before a change.
  2. Type a TTL in seconds, such as 3600, or with BIND units, such as 1h, 1h30m or 2d.
  3. For the time questions, type the date and time of the change. The answer uses the same clock.
  4. Choose Calculate. You can copy the result or download it as a CSV file.

What a TTL does

Each DNS record has a TTL (time to live): the number of seconds a resolver may keep the answer before it must ask the name server again. When you change a record, a resolver that has the old answer keeps it until its TTL runs out.

  • Worst case after a change: the time of the change plus the TTL that resolvers saw before the change. The new TTL you set with the change does not shorten old copies.
  • A new name: a resolver that asked before the name existed was told "no such name". It keeps that answer for the smaller of the TTL of the SOA record and the SOA MINIMUM field (RFC 2308).
  • Lowering before a change: lower the TTL at least one old TTL before the change. Then every cached copy has the short TTL when you make the change, and the change spreads within the short TTL.
  • Limits: a TTL is a whole number from 0 to 2,147,483,647 seconds (RFC 2181).

BIND units

Write the units from the largest to the smallest, such as 1d2h30m. The letter m means minutes, never months.

Units in zone files (BIND style)
Unit Meaning Seconds
w week 604,800
d day 86,400
h hour 3,600
m minute 60
s second 1

Worked example

A record has a TTL of 86,400 seconds (1 day). You plan to move the site on Tuesday, 20 October 2026 at 14:00:00, with a temporary TTL of 300 seconds and no extra margin.

Lower the TTL at the latest on Monday, 19 October 2026 at 14:00:00 (one day before). Make the change at 14:00:00 on the Tuesday. Old answers are gone by 14:05:00, 300 seconds later. Raise the TTL back to 86,400 when you will not roll back.

Without the plan, a resolver that fetched the record just before 14:00:00 on the Tuesday could keep the old answer until Wednesday, 21 October 2026 at 14:00:00.

Limits you should know

  • Nothing is looked up. To see the TTL a record has now, use the DNS Lookup.
  • The times are the worst case by the TTL. Most resolvers get the new answer sooner. Some resolvers keep answers longer than the TTL, or set their own shortest and longest times: add a margin for them.
  • Browsers, operating systems and programs may keep their own copy of an answer for a while. That is not counted here.
  • Times are in the clock you typed. A change of summer time between the two times is not counted.

Related tools