Advertising disclosure: We may earn a commission from links on this site. Commercial relationships can affect placement. Product facts, limitations, and source dates remain part of our editorial record.

How funding works
Web Hosting

Cloudflare Time to Live (TTL): A Guide for Website Owners

Learn how DNS Time to Live (TTL) affects caching, website changes, Cloudflare’s Auto setting, and the difference between record and nameserver TTL.

Review sources
Research standard

Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.

Time to Live (TTL) is the caching period attached to a DNS record. For website owners, it determines how long DNS resolvers may reuse an answer before requesting it again. A longer TTL can reduce repeated DNS lookups, but a change to where a domain or subdomain points may take longer to reach users. Local DNS caches can extend that delay, so TTL is not a guarantee that every user will see a change at one exact time.

How TTL affects website changes#

When a DNS record points a hostname to a destination, resolvers may cache that answer for the record’s TTL. While the cached answer remains valid, a resolver can continue returning the previous destination instead of asking for the updated record.

After the TTL expires, the resolver can request a newer answer. Local caches may update later than expected, however. This means that changing a record does not necessarily make the new destination visible everywhere as soon as the TTL value has elapsed.

The practical trade-off is straightforward:

Data table from this page
TTL choiceEffect
Longer TTLFewer repeated DNS lookups, but cached changes may remain visible for longer.
Shorter TTLResolvers can request updated answers sooner after the existing cache period ends, but the change is not an immediate cache-clearing operation.

TTL affects how long an answer is cached; it does not change the record’s destination. The record value, such as the address or target being published, is what determines where the hostname points.

Cloudflare’s documented TTL behavior#

Cloudflare’s settings depend on whether a record is proxied or DNS-only:

  • For proxied records, Cloudflare documents an Auto TTL of 300 seconds, or five minutes, by default. Cloudflare says this value cannot be edited.
  • For DNS-only records, Cloudflare provides selectable TTL values. The Auto value is 300 seconds.
  • Cloudflare notes that record changes may take longer than five minutes because local DNS caches may update later.

These details describe Cloudflare’s DNS service. Other DNS providers may use different defaults, available values, or controls, so a Cloudflare setting should not be treated as a universal DNS rule.

Record TTL and nameserver TTL are different#

A record TTL applies to a DNS record, such as the record for a domain or subdomain. Nameserver TTL is a separate setting. Cloudflare documents it as applying to Cloudflare nameservers and custom nameservers, while other NS records use their own TTL fields.

Before changing DNS, identify which kind of change you are making. If you are changing the value of a hostname record, inspect that record’s TTL. If you are changing nameserver delegation, the nameserver TTL is the relevant setting. Confusing the two can lead to an inaccurate estimate of when users will see the change.

A practical checklist for changing a record#

  1. Identify the exact domain or subdomain record you intend to change.
  2. Check whether the record is proxied or DNS-only in Cloudflare, because the available TTL behavior differs.
  3. Check the current TTL and distinguish it from the nameserver TTL.
  4. Make the record change and allow at least the documented cache period to pass. For Cloudflare’s Auto setting, that period is 300 seconds, but local caches may require more time.
  5. Test the updated DNS answer from more than one resolver or network if the change affects an important site. A successful test shows that the queried resolver has the new answer; it does not prove that every user’s cache has updated.

If an old answer remains visible, first recheck the exact record, its proxy or DNS-only status, and whether the change involved a record or nameserver. Those distinctions determine which TTL and cache behavior apply.

Sources

  1. Cloudflare: Time to Live (TTL) Checked 2026-10-31
  2. Cloudflare dns documentation Checked 2026-10-31