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

Glossary

DNS TTL: how long records are cached

DNS TTL, or time to live, is the number of seconds a resolver may cache a DNS record before it must ask again. A lower TTL makes changes spread faster but sends more queries to your nameservers, and a higher TTL does the opposite.

The short answer
  • TTL is in seconds: 300 is 5 minutes, 3600 is 1 hour, 86400 is 1 day.
  • It counts down in each cache, so users see the change at different times.
  • Lower the TTL before a planned change, then raise it again afterward.
Try the dns lookupFree, live, no signup

What TTL values mean in practice

Seconds converted, with typical use
TTL (seconds)TimeTypical use
601 minuteFailover records or an imminent migration
3005 minutesRecords you may change soon
36001 hourCommon default for stable records
864001 dayRarely changing records such as NS or MX

The values are common conventions, not a standard. Resolvers may shorten TTLs, and RFC 8499 allows a cache operator to do so. Providers set their own default and minimum.

How do you plan a DNS change around TTL?

  1. 01

    Read the current TTL

    Look up the record and note its TTL.

  2. 02

    Lower it ahead of time

    At least one old-TTL period before the change, drop it to something like 300 seconds.

  3. 03

    Make the change

    Update the record. Resolvers holding the old answer expire it within the lowered TTL.

  4. 04

    Verify, then raise it

    Confirm the new value from several locations and restore a longer TTL.

What do the standards say?

0 to 2,147,483,647

Range of a TTL value in seconds

Source: RFC 8499, section 5

1 to 3 hours

Suggested cap for caching a negative (NXDOMAIN) answer

Source: RFC 2308

Lower of two

Negative answers use the smaller of the SOA TTL and its MINIMUM field

Source: RFC 2308

Common questions

What is a good DNS TTL?

For stable records, an hour (3600) is a common choice. Use 300 seconds or less when you expect to change a record or want fast failover. There is no single correct value; it trades change speed against query load.

Why does a DNS change not show up everywhere at once?

Each resolver cached the old answer at a different moment and holds it until its TTL runs out. This is usually called propagation, but it is cache expiry, not a push of the new record.

Does TTL zero disable caching?

RFC 1035 says a zero TTL means the record is used only for the current transaction and not cached. Some resolvers apply their own minimums, so very low values may not behave exactly as written.

See every DNS change in a history

DNS monitoring records each change to a domain's records and can email on every change or only risky ones.