Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

DNS TTL: what it means and what value to choose

DNS TTL (time to live) is the number of seconds a resolver may cache a record before asking again. Use 3600 seconds (one hour) for stable records and lower it to 300 seconds a day before a planned change, so most resolvers pick up the new value quickly.

The short answer
  • High TTL means fewer lookups and slower changes. Low TTL means faster changes and more queries.
  • Lower the TTL at least one old-TTL period before you change a record.
  • Allowed range is 0 to 2,147,483,647 seconds; some providers enforce their own minimums.
Try the dns lookupFree, live, no signup

Which TTL should you set?

Practical starting points (not a standard; adjust to your risk)
SituationTTLReason
Stable A, AAAA, CNAME, MX3600 (1 hour) or higherFewer queries and the record rarely changes
Before a planned move300 (5 min), set a day aheadOld cached answers expire within minutes of the switch
Failover or load-balanced records60 to 300Fast reaction when an address is withdrawn
NS records and SOAProvider defaultChanging these needs registrar action, not TTL tuning
Verification TXT recordsDefault is fineRead once, rarely matters

How do you migrate with minimal downtime?

  1. T minus 1 day or more
    Lower the TTL

    Set 300 seconds on records you will change, and wait at least the old TTL so every cache has refreshed.

  2. T
    Change the record

    Switch the IP or target. Most resolvers pick it up within the short TTL.

  3. T plus 1 hour
    Verify from several resolvers

    Query 1.1.1.1, 8.8.8.8 and the authoritative server with the DNS lookup.

  4. T plus 1 to 2 days
    Raise the TTL again

    Return to 3600 or higher once the new setup is stable.

What do the standards and providers say?

0 to 2,147,483,647

Valid TTL range in seconds

Source: RFC 2181, section 8

300 seconds

What Cloudflare Auto TTL equals; proxied records are fixed at Auto

Source: Cloudflare DNS docs

60 seconds

Lowest TTL selectable on non-Enterprise Cloudflare plans for DNS only records

Source: Cloudflare DNS docs

Why does a change still take longer than the TTL?

Browser and OS caches

Chromium keeps a host entry for at least 60 seconds and ignores the TTL when it uses the system resolver.

Resolvers cap or ignore TTLs

Some recursive resolvers apply their own minimums or maximums.

Negative caching

A name that did not exist is cached for the SOA minimum, see DNS zone.

What do you check after changing a TTL?

  • Query the record twice and confirm the remaining TTL counts down from the new value
  • Confirm all records in one set share the same TTL, because RFC 2181 requires equal TTLs within a record set
  • Remember that resolvers which already cached the record keep the old TTL until it expires
  • Note the time of the change, because the old TTL tells you when the last cache will refresh

Common questions

What does TTL mean in DNS?

TTL stands for time to live. It is a value in seconds attached to each DNS record that tells resolvers how long they may keep the answer before asking the authoritative server again.

What is a good TTL for DNS records?

For stable records 3600 seconds (one hour) to 86400 (one day) works well. Before a planned change lower it to 300 seconds. There is no mandated value; it trades query volume against change speed.

What is Auto TTL in Cloudflare?

Auto equals 300 seconds on Cloudflare. For proxied records it is fixed and cannot be edited. For DNS only records you can choose a value from 60 seconds to 1 day on non-Enterprise plans.

Does lowering TTL take effect immediately?

No. Resolvers that already cached the old record keep it until the old TTL runs out. That is why you lower TTL a day ahead of a change, not at the moment of the change.

Can a TTL be zero?

Yes. RFC 1034 says a zero TTL means the record must not be cached. It is rarely used because every lookup then hits the authoritative server, which adds latency and load and can be rate limited.

Does a higher TTL make a site faster?

Slightly. A longer TTL means more visitors are served from a cache, so fewer lookups travel to the authoritative server. For most sites the difference is a few milliseconds on the first visit, so stability matters more than speed.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.