# TTL (time to live)

> TTL on a DNS record sets how long resolvers may cache it. Cloudflare

Canonical: https://scaplet.com/glossary/ttl

Glossary Glossary · Performance

TTL on a DNS record sets how long resolvers may cache it. Cloudflare's limits, the speed versus change trade-off, how it differs from max-age, and a dig check.

3 min

read

3

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

TTL (time to live) on a DNS record is the number of seconds resolvers may cache that record before asking again. A longer TTL means faster repeat lookups but slower propagation of changes, and a shorter TTL does the opposite. HTTP caching has its own lifetime, Cache-Control max-age, which is a different setting.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fttl%20(%22TTL%20(time%20to%20live)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fttl%20(%22TTL%20(time%20to%20live)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fttl%20(%22TTL%20(time%20to%20live)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fttl%20(%22TTL%20(time%20to%20live)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

Seconds

Unit

Each DNS record

Applies to

300 seconds

Cloudflare Auto

60 seconds to 1 day (30 seconds on Enterprise)

Cloudflare DNS-only range

_01_At a glance

## What TTL controls

When a resolver looks up your domain, it keeps the answer for the record's TTL and reuses it instead of asking your nameserver again. RFC 1035 describes the TTL as the time a resource record may be cached before it should be discarded or the source consulted again, expressed in seconds. A zero TTL means the record is for the transaction in progress only and should not be cached.

Part

### `www.example.com.`

Meaning

Name the record answers for

Part

### `300`

Meaning

TTL: resolvers may reuse this answer for 300 seconds

Part

### `IN`

Meaning

Record class (internet)

Part

### `A`

Meaning

Record type. See [A record](/glossary/a-record)

Part

### `203.0.113.10`

Meaning

The value returned to the resolver

A zone file entry with a TTL

```
www.example.com. 300 IN A 203.0.113.10 ; ^ TTL in seconds
```

_02_Cloudflare DNS limits

## Choosing a value

Cloudflare's documentation frames the trade-off directly: a longer TTL makes lookups faster because more are answered from cache, and also means record updates take longer to take effect. A shorter TTL speeds updates at the cost of more uncached lookups. Cloudflare adds that local caches can take longer than the TTL to update, so the real delay can exceed the number you set.

Record type

### Proxied

TTL behavior

Fixed at Auto, which is 300 seconds, and cannot be changed

Record type

### DNS only, Auto

TTL behavior

300 seconds

Record type

### DNS only, custom

TTL behavior

60 seconds to 1 day (86,400 seconds). 30 seconds minimum on Enterprise

Use a longer TTL when
- The record is stable and rarely changes
- You want more lookups answered from resolver caches
- You are not planning a move soon

Use a shorter TTL when
- You are about to change an IP, host or provider
- You want changes to reach users sooner
- You accept more uncached lookups in return

_03_At a glance

## DNS TTL is not max-age

The same word covers two separate clocks. DNS TTL caches the answer to where a hostname points. [HTTP caching](/glossary/http-caching) decides how long a browser or CDN may reuse the response for a URL. Changing one does not change the other.

### What it caches

DNS TTL

A DNS record, such as an IP address

Cache-Control max-age

An HTTP response for a URL

### Set on

DNS TTL

The DNS record at your DNS provider

Cache-Control max-age

The response header from your server or CDN

### Unit

DNS TTL

Seconds

Cache-Control max-age

Seconds

### Counts from

DNS TTL

Cached TTLs count down in the resolver, per RFC 1035

Cache-Control max-age

When the origin generated the response, minus time already spent in intermediate caches

### Related entry

DNS TTL

[A record](/glossary/a-record)

Cache-Control max-age

[Cache-Control](/glossary/cache-control)

**CDN settings use the word too**CDN and edge cache settings are also often called TTL, but they govern cached content, not DNS. Confirm which system a setting belongs to before changing it. See [CDN](/glossary/cdn) and [edge caching](/glossary/edge-caching).

_04_Worth knowing

## Check it in 2 minutes

### Read the TTL on the authoritative answer

Query your nameserver directly to see the configured value rather than a decremented cached one.

### Re-check after the change

Query a public resolver to see whether it already returns the new value.

### Do not confuse it with a redirect

A DNS change does not send a 301. See [301 redirect](/glossary/301-redirect) for moving URLs.

Read the TTL a resolver reports

```
# The number after the name is the remaining TTL in seconds dig +noall +answer www.example.com A # www.example.com. 287 IN A 203.0.113.10 # Ask again after a few seconds: a cached answer counts down dig +noall +answer www.example.com A @1.1.1.1
```

**The old TTL still applies to cached copies**Cloudflare notes that local DNS caches can take longer than the TTL to update, so the delay can exceed the value you set. For a planned move, check the current TTL first and verify the new answer before relying on it.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- cloudflare.com
- mozilla.org

1. 01 [RFC 1035: Domain names, implementation and specification](https://www.rfc-editor.org/rfc/rfc1035) rfc-editor.org · checked 2026-11-01
2. 02 [Time to live (TTL) (Cloudflare DNS docs)](https://developers.cloudflare.com/dns/manage-dns-records/reference/ttl/) developers.cloudflare.com · checked 2026-11-01
3. 03 [Cache-Control header (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control) developer.mozilla.org · checked 2026-11-01

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ What is a good TTL for DNS?

There is no single value. Cloudflare's Auto setting is 300 seconds, and DNS-only records can be set from 60 seconds to 1 day. Pick shorter when you expect changes and longer for stable records.

_02_ Is TTL the same as Cache-Control max-age?

No. DNS TTL caches a DNS record at resolvers. max-age sets how long an HTTP response stays fresh in browser and CDN caches. Both are in seconds but control different caches.

## Keep learning

[All glossary](/glossary)

[Learn Cache-Control Performance](/glossary/cache-control) [Related Time to First Byte (TTFB) Performance](/glossary/time-to-first-byte) [Read next HTTP caching Performance](/glossary/http-caching) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Trailing slash in URLs](/glossary/trailing-slash) [Trust Flow](/glossary/trust-flow) [TXT record](/glossary/txt-record) [unavailable_after](/glossary/unavailable-after)

More in Performance
[Real user monitoring (RUM)](/glossary/real-user-monitoring) [Render-blocking](/glossary/render-blocking) [Responsive design](/glossary/responsive-design) [Responsive images](/glossary/responsive-images) [Service worker](/glossary/service-worker) [Speculation rules](/glossary/speculation-rules) [Speed Index](/glossary/speed-index) [SVG](/glossary/svg) [Synthetic monitoring](/glossary/synthetic-monitoring) [Time to First Byte (TTFB)](/glossary/time-to-first-byte) [Time to Interactive (TTI)](/glossary/time-to-interactive) [Total Blocking Time (TBT)](/glossary/total-blocking-time) [TTL (time to live)](/glossary/ttl) [Viewport meta tag](/glossary/viewport-meta-tag) [WebP](/glossary/webp) [AVIF](/glossary/avif) [bfcache (back/forward cache)](/glossary/bfcache) [Brotli compression](/glossary/brotli-compression) [Cache-Control](/glossary/cache-control) [CDN](/glossary/cdn) [Chrome UX Report (CrUX)](/glossary/chrome-ux-report) [Content Security Policy](/glossary/content-security-policy) [Content-Length (HTTP header)](/glossary/content-length) [Core Web Vitals](/glossary/core-web-vitals)

Terms on this page
[A record (DNS address record)](/glossary/a-record) [HTTP caching](/glossary/http-caching) [Cache-Control](/glossary/cache-control) [CDN](/glossary/cdn) [Edge caching](/glossary/edge-caching) [301 redirect](/glossary/301-redirect)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
