What TTL should a DNS record have? 5 minutes, 1 hour or 1 day

By TechCompare · Updated · How we check

Use 3600 seconds (1 hour) for most records. Drop to 300 seconds (5 minutes) at least one old TTL before a planned change, then raise it again once the change has settled.

The TTL (time to live) is the number of seconds a resolver may keep a copy of a record before it has to ask again. A long TTL means fewer lookups and steady answers. A short one means changes reach everyone sooner. Most records do fine at an hour. The trick is to lower the TTL ahead of a planned change, not during it.

Topic
What TTL to set
Time to live
Category
Caching and errors
TTLs, propagation and empty answers

How this is calculated

A TTL only affects the next fetch. When you change a record, resolvers that already cached it keep the old answer until their copy expires, so the old TTL sets how long the switch takes. Lower the TTL to 300 a day before a server move (longer, if the current TTL is more than a day), make the change, check it, then put the TTL back.

Very short TTLs have a price. Every expired copy means another round trip to your name servers, which adds delay for visitors on a cold cache and more load on your DNS host. A TTL of a few seconds turns almost every visit into a fresh lookup.

Some starting points:

  • 300 seconds (5 minutes) for records behind a failover setup or anything you expect to move soon.
  • 3600 seconds (1 hour) for websites, mail and most other records.
  • 86400 seconds (1 day) for NS records and names that almost never change.

The DNS Lookup shows the TTL in plain time and in seconds. It's the time left on the resolver's copy, which is why two resolvers rarely show the same number.

Verdict

Leave records at 3600 seconds unless you have a reason not to. Go down to 300 for a planned move, and wait out the old TTL before you switch. Use 86400 for NS records and other names that only change once in a while. Skip TTLs under a minute: they add lookups without making changes much faster.

More DNS scenarios

TXT records
The free text record that holds verification codes, SPF, DKIM keys and DMARC policies.
View details
SPF vs DKIM vs DMARC
SPF checks the sending server, DKIM checks the message, and DMARC ties both to the From address.
View details
MX records
How senders find your mail servers, what the priority number does, and the null MX for domains that take no mail.
View details

Frequently asked questions

What's the default TTL for a DNS record?
There's no single default. Many DNS hosts start new records at an hour, and some use five minutes or an automatic setting. Check what your host picked before a move, since that's the TTL you'll have to wait out.
Does lowering the TTL make my change show up faster?
Only if you lower it before the change and then wait for the old TTL to run out. Resolvers that cached the record under the old TTL keep it for that long, whatever you set afterward.
Why does the TTL keep going down when I look it up again?
Because it's a countdown. A resolver hands out the time its copy has left, so each lookup shows a smaller number until the copy expires and the resolver fetches the record again with the full TTL.