Bridge CDN
On this page

What does TTL mean in DNS?

Every DNS record carries one, set by whoever runs the zone. It's a plain number of seconds: 300 means five minutes, 3600 means an hour, 86400 means a day. When a recursive resolver fetches the record, it starts a countdown from that number. Until the countdown hits zero, it answers from memory. After that, the next query sends it back to the authoritative nameserver for a fresh copy.

The value is a 32-bit field. RFC 2181 (section 8) caps it at 2,147,483,647 seconds and tells resolvers to treat anything larger as zero. Nobody uses values near that limit. In real zones, DNS TTLs sit between 30 seconds and a couple of days.

So, what is TTL in practice? It's a promise about staleness. You're telling every resolver on the internet: "you may trust this answer for this long without checking."

How TTL controls resolver caching

TTL in DNS only means something once a resolver has cached the record. Watch it with dig against a public resolver:

dig @1.1.1.1 www.example.com A
www.example.com.   47   IN   A   203.0.113.10

That 47 is the time left in that resolver's cache, not the value you set. Ask again ten seconds later and you'll see 37. Ask the authoritative server instead and you always get the full value, because it doesn't count down.

A few details change the picture:

  • Resolvers can cap DNS TTLs. BIND limits cached answers to one week by default, Unbound to one day. A 30-day value won't hold for 30 days everywhere.
  • Some resolvers serve stale data. RFC 8767 lets a resolver keep answering with an expired record when it can't reach your nameservers. That's useful during an outage and confusing during a migration.
  • Missing names are cached too. When a name doesn't exist, the "no such name" answer is cached for the shorter of the SOA record's TTL and its minimum field (RFC 2308). That's negative caching. It's why a record you just created can stay invisible for a few minutes to anyone who asked before it existed.
  • Devices and browsers keep their own DNS cache. Operating systems and browsers cache answers as well, usually for less time than the record allows.

TTL, cache and propagation: what actually takes time

"Propagation" makes it sound like changes travel slowly from server to server. They don't. On Bridge DNS, a saved change is live on every nameserver within seconds. What takes time is cache expiry. Each resolver that already holds the old answer keeps it until its own countdown runs out.

Use the TTL in place before the change to estimate how long a cached answer can persist. If the old record had 86400, a resolver that just fetched it may keep it for a day. If it had 60, that cache entry normally expires within one minute. Some resolvers can serve stale answers longer when the authoritative server is unreachable.

Nameserver changes are the exception. When you change the nameservers at your registrar, the NS records in the parent zone have their own time to live, and you don't control it. For .com and .net, it's 172,800 seconds, which is 48 hours. That delay comes from the registry, not from your zone.

For a practical check, see how to check your DNS configuration.

There's no single correct number. These are the values we'd start from:

Record Suggested TTL Why
A / AAAA, changes rarely 3600 (1 hour) Fewer queries, quick enough recovery
A / AAAA, might move soon 60–300 Mistakes and moves clear in minutes
A / AAAA, proxied in Bridge Auto (60) The answer is the edge, so origin moves don't touch DNS
CNAME Same as the A record it serves The shortest TTL in a chain decides the wait
MX 3600 Mail retries for days, so speed matters less than stability
TXT (SPF, DKIM, DMARC) 3600 Changes are rare and planned
TXT for domain verification 300 You'll often add, check and remove it within an hour
CAA, SRV 3600 Rarely changed
NS, SOA at the apex Managed by Bridge You don't edit these

TTL 3600 is a sensible default for anything stable. Go lower only for records you expect to change.

Automatic TTL in Bridge DNS

Bridge DNS sets TTL to Auto by default. Auto TTL resolves to 60 seconds for A, AAAA, and CNAME records and 120 seconds for every other record type. We chose short values on purpose. Most DNS mistakes are typos in an address. A 60-second TTL limits how long resolvers cache the incorrect value at that TTL.

The trade-off is query volume. Short TTLs mean resolvers ask our nameservers more often, and that load is ours to carry, not yours. For A and AAAA records behind the Bridge proxy, the cache lifetime matters even less. Their public answer is the Bridge edge, and it stays the same when you change your origin server.

How to choose a TTL when adding a record

Ask three questions when you add a DNS record:

  1. Will this value change in the next week? If yes, keep Auto or set 60–300.
  2. Does anything break if the change is slow? Website moves do. Mail usually doesn't, because sending servers retry.
  3. Is this record queried a lot? High-traffic names with long TTLs cost resolvers less work. Below an hour, the difference is invisible to users.

If you can't answer, keep Auto. You can always raise the TTL later.

DNS TTL best practices

  • Lower the TTL before a change, not during it. Drop it at least one full old-TTL period ahead, so every cache already holds the short value.
  • Raise it again afterwards. Once the new setup is stable for a day, go back to your normal value.
  • Keep chains consistent. A CNAME set to 60 seconds that points at a name cached for a day still waits a day.
  • Don't panic about very low values. A 60-second TTL is normal on modern authoritative DNS. It doesn't slow down page loads in any way users notice.
  • Write down what you changed. During a migration, list each record's original value so you can restore it.

Lowering TTL before a planned change

Say your A record has a TTL of 86400 and you're moving servers on Friday:

  1. Thursday morning or earlier: set the TTL to 300. Old caches still hold the 1-day value, so you need the full day for them to expire.
  2. Friday: change the address. Users move over within five minutes.
  3. Saturday: if everything works, raise it back to 3600 or your usual value.

The same applies to switching DNS providers, with one more step: DNS TTLs at the old provider still govern caches until the switch is done. The full sequence, including DNSSEC, is in the DNS migration checklist.

Restoring TTL after a migration: once the new provider has answered for a full day without problems, set your long-lived records back to their normal values. Leaving everything at 60 seconds is harmless in Bridge, but it's worth deciding on purpose.

How to change a record TTL in Bridge DNS

  1. Open the zone and choose the record.
  2. In the TTL field, keep Auto or enter a value in seconds.
  3. Save. Our nameservers serve the new TTL on the next query.

Remember that resolvers which cached the record under the old TTL keep counting down from the old value.

How to check DNS TTL

To check DNS TTL as you set it, ask the authoritative server:

dig @ns1.bb-ns.com www.example.com A +noall +answer

To see what a resolver is holding right now, ask the resolver:

dig @8.8.8.8 www.example.com A +noall +answer
nslookup -debug www.example.com 8.8.8.8

The second column of the dig answer is the remaining time to live. On Windows, nslookup -debug prints it as ttl =.

DNS TTL questions

What is a good TTL for DNS?

For stable records, 3600 seconds (one hour) is a good default. For records you expect to change, use 60–300 seconds. Auto TTL resolves to 60 seconds for A, AAAA, and CNAME records and 120 seconds for every other record type.

What does TTL 3600 mean?

TTL 3600 means a resolver may cache the record for 3600 seconds, which is one hour, before asking the authoritative nameserver again. After a change, users behind that resolver can see the old value for up to an hour.

What is the minimum TTL for DNS?

The protocol allows zero, which means "don't cache." In practice, 30–60 seconds is the lowest useful minimum TTL. Some resolvers can be configured to enforce their own floor, so values under a minute aren't always honored.

Does lowering the TTL make changes faster?

Only if you lower it in advance. Caches holding the record under the old, longer TTL keep it until that countdown ends. Lower the TTL first, wait one old-TTL period, then make the change.

Does the TTL affect a nameserver change?

Not your record TTLs. A nameserver change depends on the NS TTL in the parent zone. For .com and .net, that's 172,800 seconds, which is 48 hours, and only the registry controls it.

How do I clear the DNS cache after a TTL change?

You can flush your own device or browser DNS cache, but you can't flush other people's resolvers. Public resolvers like 1.1.1.1 and 8.8.8.8 offer purge pages for single names. Everyone else waits out the old DNS TTL.

See also the Bridge DNS setup guides.