DNSBuddy
  • Tools
  • Data
DocsDocumentationKBKnowledge Base

Knowledge base

Knowledge base

Short reference articles

API
  • DNS providers
DNS
  • DNS TTL
  • WHOIS fields
DNS Records
  • A record
  • AAAA record
  • CNAME record
  • MX record
  • NS record
  • PTR record
  • SOA record
  • TXT record
  • CAA record
  • DNSSEC record
Email
  • SPF record
  • DKIM record
  • DMARC record
  • DKIM2 record
  • MTA-STS record
  • TLS-RPT record
  • BIMI record
  • DANE record

DNS TTL

A DNS TTL is three clocks: the record, the SOA minimum for negative answers, and the parent delegation. How to read each one.

On this page

  • The number on the record
  • The TTL you see is often the remainder
  • Negative answers have their own TTL
  • The parent has a third clock
  • Before a planned edit
  • Mistakes that look like a stuck TTL
  • Frequently asked questions

Understanding DNS TTL (Time To Live)

TL;DR A TTL is a number of seconds in a DNS answer. Resolvers may cache that answer until the count hits zero. Three different TTLs show up in a real change: the record you edited, the SOA minimum that covers negative answers, and the parent delegation that covers nameserver and DS changes. On 22 November 2026 those three values for example.com were 300, 1800, and 172800 seconds.

Last updated: November 22, 2026

How to check DNS propagation is the procedure for watching a change spread. This page is what the numbers mean. A lookup below shows the TTL on the answer you received, which is the time left in that resolver's cache, not always the value configured in the zone.

Look up A records
Enter a domain name to lookup A records

Enter the domain name you want to lookup Examples:

View full DNS lookup tool with advanced options →

The number on the record

RFC 1035 puts a TTL on every record, in seconds. RFC 2181 section 8 says the high bit is reserved, so the largest value a sender should use is 2,147,483,647 seconds. In practice, zones use 300, 3600, or 86400.

Queried with the authoritative bit set, at elliott.ns.cloudflare.com, on 22 November 2026:

example.com.   300   IN   A    104.20.23.154
example.com.   300   IN   A    172.66.147.243

300 seconds is the zone's setting for those A records. A resolver that has never cached the name fetches it and may then answer from cache for 300 seconds. A resolver that cached it 200 seconds ago will keep the old address for about 100 seconds more, then fetch again. The wait after an edit is whatever remains on each resolver, so the worst case is the full TTL and the usual case is less.

That bound is what the protocol says. RFC 8767 allows a resolver to serve an expired answer when it cannot refresh. Some operators do. A record that is still old past its TTL is a resolver policy, and the next check is against 8.8.8.8 and 1.1.1.1, which is the comparison in the propagation guide.

The TTL you see is often the remainder

A recursive answer counts down. The same day, 8.8.8.8 returned example.com SOA with a TTL of 123. The authoritative SOA TTL, from elliott.ns.cloudflare.com, was 1800. 123 was the time left in Google's cache, not the zone setting.

The DNS lookup shows the ttl field from the answer it received. Querying a public resolver shows a remainder. Querying the zone's own nameserver, and seeing the aa flag, shows the configured value. Compare those two before you decide the zone is "set to 123."

Negative answers have their own TTL

A name that does not exist, or a type that is not published, is cached too. RFC 2308 uses the SOA record's MINIMUM field as that negative cache TTL.

Authoritative SOA for example.com, 22 November 2026:

example.com.  1800  IN  SOA  elliott.ns.cloudflare.com. dns.cloudflare.com. (
                         2420077714  10000  2400  604800  1800 )

The last number is MINIMUM, 1800 seconds. The SOA record's own TTL is also 1800. They are not the same field. MINIMUM is the one that governs NXDOMAIN and NODATA.

Add a brand new hostname while resolvers are still caching "that name does not exist," and those resolvers keep the negative answer for up to 1800 seconds even though the new A record says 300. The record TTL applies after a resolver has an answer to cache. It does not wipe a negative cache that is already stored. The SOA record reference lists the other SOA timers (refresh, retry, expire). Those are for secondary nameservers copying the zone. They are not the public cache TTL.

The parent has a third clock

Nameserver changes, and DS changes for DNSSEC, are published in the parent zone. The parent's TTL is the one that matters.

From a.gtld-servers.net, which is authoritative for .com, on 22 November 2026:

example.com.   172800   IN   NS   hera.ns.cloudflare.com.
example.com.   172800   IN   NS   elliott.ns.cloudflare.com.

172800 seconds is 48 hours. Lowering the A record TTL to 300 does not make a nameserver cutover take five minutes. Resolvers keep the old delegation until that parent TTL runs out. The NS record page covers the record type. The DNS migration checklist is the sequence to follow when the delegation itself is moving.

Before a planned edit

Read the configured TTL from an authoritative answer, not the remainder from 8.8.8.8.

Lower that record's TTL, then wait out one full period of the old value. If the old TTL was 86400, the lower value is not visible everywhere until a day has passed. If the old TTL was 300, the wait is five minutes. After resolvers are on the short TTL, make the edit. When the new answer is what you want, raise the TTL again.

There is no universal production TTL. example.com serves A records at 300 seconds and negative answers at 1800. A record you expect to change belongs near the low end. A record you do not expect to change can sit at 3600 or higher so resolvers stop asking. Copying 300 onto every record adds query load and does not speed up a delegation change.

Do not publish another edit while resolvers are still on the previous one. Each new answer starts a fresh TTL on the resolvers that have already picked it up, and the ones that have not still hold the version before that. One change, then watch it. The propagation guide is the watch.

Mistakes that look like a stuck TTL

  • Treating the countdown from a public resolver as the zone's TTL.
  • Expecting a new name to appear in 300 seconds when the SOA MINIMUM is 1800 and a negative answer is already cached.
  • Expecting an NS or DS change to follow the A record TTL.
  • Setting the TTL to 0 and expecting every resolver to obey it. Resolvers are allowed to impose their own floor and ceiling.
  • Editing the record again before the previous TTL has drained.

Frequently asked questions

What is a DNS TTL?
A TTL is the number of seconds a resolver may cache a DNS answer. After it hits zero, the next query is supposed to go back to an authoritative server. On 22 November 2026 the example.com A records were set to 300 seconds at the authoritative nameserver.
Why does dig show a smaller TTL than my DNS host?
A recursive resolver counts the TTL down from the moment it cached the record. The configured value is the one on an authoritative answer, the response with the aa flag. A smaller number from 8.8.8.8 or 1.1.1.1 is the time remaining in that cache.
Which TTL controls a nameserver change?
The parent zone's TTL on the delegation. For example.com that value was 172800 seconds at a.gtld-servers.net on 22 November 2026. The A record TTL does not apply to the NS records in the parent.
Which TTL controls a brand new hostname?
If resolvers have already cached a negative answer, the SOA MINIMUM applies. For example.com that field was 1800 seconds on 22 November 2026. The new record's own TTL applies once a resolver has a positive answer to cache.
RFC 2181

Clarifications to the DNS Specification

RFC 2308

Negative Caching of DNS Queries (DNS NCACHE)