1. Home
  2. Developer tools
  3. DNS TTL Calculator

DNS TTL Calculator

Enter a TTL as 3600, 1h30m or 2d and see it in seconds, words and BIND notation. A planner shows when to lower the TTL before a migration.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use DNS TTL Calculator

  1. Enter a TTL.
  2. Read what it means.
  3. Optionally enter the current TTL and change time for a plan.

Features

  • Seconds, words and BIND notation
  • Advice for short and long TTLs
  • Migration timeline in your local time
  • Quick buttons for common values
  • Handles w, d, h, m and s units
  • Nothing sent anywhere

Supported formats

Input

  • TTL values
  • Times and dates

You get

  • TTL in several units
  • Change timeline

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the DNS TTL Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The plan assumes resolvers respect the TTL, and some ignore short values.
  • It does not read the real TTL of your records; enter it yourself.

Guide

Choosing a DNS TTL and timing a record change

A TTL is a number that quietly decides how fast your changes reach people. Set it too high and a mistaken record lingers for a day; set it too low and your name servers carry needless traffic. The page turns TTLs into plain language, explains what the value implies and then plans the sequence of steps for a migration.

What a TTL is

The time to live is the number of seconds a resolver may keep an answer before asking again. It is stored with each record, so different records of the same name can have different TTLs. Operating systems, browsers and routers cache for no longer than the TTL, though some round it up or down. A record that has been cached with a TTL of one day can stay in a cache for a day after you change it, which is the central fact behind every DNS migration plan.

Entering a value

Type seconds (3600) or a combination of units (1h30m, 2d, 1w), or press one of the quick buttons: 1 min, 5 min, 30 min, 1 h, 4 h, 1 d and 7 d. The result shows the value in seconds, in words (for example “1 hour”) and in BIND notation (1h), plus advice. The advice sorts values into very short (under about 60 seconds), short, moderate (a common choice for records that may change, 300 to 3600 seconds), long and very long, with the trade-off of each in a sentence.

Choosing a value

Short TTLs help when you expect changes: failover records, records behind a load balancer, anything you are about to migrate. Long TTLs reduce lookups and tolerate name server outages, which suits records that almost never change, such as NS and MX at a stable provider. Typical practice is 300 to 3600 seconds for web hosts, a day for MX and NS, and temporary lowering before a planned change. Content-delivery providers often set 60 to 300 seconds and manage the rest themselves.

The change planner

Open “Planning a change” and enter the record’s current TTL and the time you want to make the change. The planner returns four times. Lower the TTL to your target at least one old-TTL period before the change, so every cache has picked up the short value. Make the change at the chosen time. Every cache has the new value one short-TTL period after the change. And a warning of what happens without the first step: the old value may linger until the change time plus the old TTL. Finally it suggests raising the TTL again once you are sure.

A worked schedule

Say a record has a TTL of one day and you want to change it on Tuesday at 14:00, with a TTL of one hour in between. The planner says: lower the TTL to one hour by Monday 14:00; change the record on Tuesday at 14:00; every cache is guaranteed to have the new value by Tuesday 15:00; without lowering first, the old value could remain until Wednesday 14:00; raise the TTL again after Tuesday 15:00. The same sums apply to any other times, shown in your own time zone.

Limits

The plan assumes resolvers respect the TTL they are given. A few ignore very short values or apply a floor, and clients may cache beyond DNS, for example in a browser’s connection pool. Add some margin. The page cannot read your real record’s TTL: use the DNS Lookup to see it. To see whether two large resolvers already agree, use the DNS Propagation Checker.

Checked against the current version of the DNS TTL Calculator on .

Frequently asked questions

Is a very short TTL like 30 seconds a good idea?

It makes changes fast but multiplies query traffic to your name servers and adds a lookup delay for visitors. Some resolvers also raise values below their own minimum, so very short TTLs may not behave as set.

What do the units w, d, h, m and s mean in BIND zone files?

Weeks, days, hours, minutes and seconds. They can be combined, so 1h30m is 5400 seconds and 2d12h is 216000. A bare number is read as seconds.

What TTL should I use?

3600 seconds (one hour) is a common default. Use 300 before a planned change and raise it afterwards; very long TTLs delay fixes.

Why lower the TTL before changing a record?

Caches keep the old answer for the TTL that was set when they fetched it. Lowering it a full old-TTL period earlier makes the change visible quickly.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.