Skip to main content
WebTools

Changed your DNS? Why updates take time (TTL explained)

Why DNS changes are not instant, what TTL means, how to plan a change so it takes minutes rather than hours, and why nameserver moves take longer.

Published

Illustration of an hourglass beside a stack of servers, with record cards flowing out towards a globe ringed by smaller hourglasses.
On this page

The short answer: DNS changes are not pushed out to the world. Each DNS server that looked up your record keeps its copy until the record's TTL (time to live) runs out, and only then asks again. If the TTL was 3,600 seconds, some people can see the old answer for up to an hour after you change it. Nameserver changes at the registrar take longer, often up to two days. To make a planned change quick, lower the TTL well before the change.

"Propagation" makes it sound as if DNS changes travel slowly across the internet. In fact nothing travels: caches simply expire at different times. Once you understand TTL, you can predict how long a change will take, and plan changes so they happen in minutes rather than hours.

What TTL actually means

Every DNS record has a TTL, a number of seconds. When a resolver (the DNS server your internet provider, router or a public service like Google or Cloudflare runs for you) looks up your record, it stores the answer and the TTL. Until that time is up, it answers anyone who asks from its own copy without contacting your DNS provider.

Cloudflare's explanation of TTL puts it simply: the TTL controls how long resolvers cache a record, and so how long it takes for updates to reach visitors. A high TTL means fewer lookups and slightly faster browsing for repeat visitors. A low TTL means changes take effect sooner.

TTL in secondsEqual toTypical use
3005 minutesJust before and during a planned change
3,6001 hourA common default for most records
14,4004 hoursA common hosting default
86,4001 dayRecords that rarely change

Seeing the TTL for yourself

The DNS Lookup shows each record together with the TTL our resolver returned. If the resolver already had the record cached, the number is the time remaining on its copy, not the value you set, so it can be lower than you expect and differ between checks.

If you have a terminal, the dig command shows the same thing. The number after the name is the TTL in seconds:

$ dig www.example.com A +noall +answer
www.example.com.   3600   IN   A   192.0.2.10

To see the value you actually set, rather than a cached countdown, look at your DNS provider's control panel or ask one of your domain's own nameservers directly.

Try it now

DNS Lookup

Look up the DNS records for a domain: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, or the reverse DNS (PTR) name of an IP address.

Open the tool: DNS Lookup

Planning a change so it happens quickly

The trick is to lower the TTL in advance, so that by the time you make the real change, every cache holds the record for only a few minutes.

Timeline in three steps. Two days before: lower the TTL, changing it from, say, 86400 to 300, and wait at least the old TTL. Change day: make the change; resolvers pick up the new value within about 5 minutes. A few days later: once everything works,
Lower the TTL first, wait out the old one, then make the change.
  1. Lower the TTL. At least one full old TTL before the change, set the record's TTL to 300 seconds. If the old TTL was a day, do this two days ahead to be safe.
  2. Wait. Caches that hold the old long TTL need time to expire. Cloudflare's DNS FAQ makes the same point: old data stays cached until its TTL runs out, so reduce the TTL ahead of time.
  3. Make the change. Update the record. Most visitors see the new value within about five minutes.
  4. Keep the old server running. Leave the old server or service working for a day or so, in case some resolvers or devices hold on to the old address longer than they should.
  5. Raise the TTL again. Once everything works, set it back to an hour or more.

Try it now

MX Lookup

Find which mail servers receive email for a domain: MX records in priority order, each host's IPv4 and IPv6 addresses, null MX and common mistakes.

Open the tool: MX Lookup

Why some changes take longer

Changing nameservers

Moving your domain's DNS to a different provider is not an ordinary record change. The nameserver list is held by the registry for your domain ending (such as .com or .uk), and its TTL is set by the registry, not by you. For .com, the delegation records have a TTL of 172,800 seconds, which is two days. Cloudflare's guidance on moving DNS says nameserver changes can take anywhere from a few minutes to 48 hours. Keep both old and new providers working, with identical records, until the move has settled.

New records that didn't exist before

If someone looked up a name before you created it, their resolver may have cached the fact that it doesn't exist. This is called negative caching. RFC 2308 sets how long that lasts: the lower of the zone's SOA record TTL and the SOA's minimum field. Many providers use an hour, so a brand new subdomain can appear "missing" for up to an hour for people who checked too early.

Devices and browsers keeping their own copy

Your computer and browser also cache DNS. If everyone else can see the change and you can't, clear your local cache. On Windows, run this in Command Prompt:

ipconfig /flushdns

Then close and reopen your browser. Routers cache too, and a restart clears them. Some apps and devices ignore the TTL and hold answers longer, which is why it is worth keeping the old server running for a while.

When you can't wait

If you made a change with a long TTL and need it seen sooner, you can't clear other people's caches. You can, however, ask the large public resolvers to forget your old record. Google Public DNS has a Flush Cache page for this. After a registrar or hosting change, flush the main domain first, then any subdomains such as www. Cloudflare's 1.1.1.1 service has a similar purge tool. This only helps people using those resolvers, but that is a large share of internet users.

If you need to undo a mistake, change the record back straight away. The same TTL applies in reverse: anyone who cached the wrong value keeps it until it expires.

Common questions

Is it true DNS changes take 48 hours?

For ordinary records, rarely. They follow the TTL, which is often an hour or less. The 48-hour figure comes from nameserver changes, where the registry's TTL is commonly two days.

Should I just set every TTL to 60 seconds?

It isn't necessary. Very low TTLs mean more lookups, slightly slower first visits and more load on your DNS provider. Use a low TTL around planned changes and a longer one the rest of the time.

Why do different checkers show different answers?

Each checker asks its own resolver, and each resolver cached the record at a different time. During a change, mixed results are normal until the old TTL has passed.

Does the TTL on one record affect others?

No. Each record has its own TTL. Changing the TTL on your www A record does nothing for your MX records.

I lowered the TTL but the change still took hours. Why?

Usually the change was made before caches holding the old, longer TTL had expired. Lower it, wait at least the old TTL, then change the record.

  • DNS Lookup

    Look up the DNS records for a domain: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, or the reverse DNS (PTR) name of an IP address.

  • MX Lookup

    Find which mail servers receive email for a domain: MX records in priority order, each host's IPv4 and IPv6 addresses, null MX and common mistakes.