Skip to content
A2Z Skills
Topics
Search

DNS propagation explained

Devchandra Shrestha

4 min read

Short answer

There is no guaranteed completion time for a DNS change. The old record’s TTL sets ordinary cache expiry, but the authoritative provider’s own update schedule, delegation, negative caching and serve-stale policies all affect when a given resolver returns the new answer.

Researched explainer. Supporting documentation and research are linked in the article.

A central server connected to globe nodes holding different cached record tiles.
Editorial illustration

A DNS change can be visible through one resolver while another still returns the old answer. The wait involves authoritative publication and independent caches, rather than one global progress counter. More hosting guides are in Websites & Hosting. A concrete case where this bites is Cloudflare Workers custom domain not working, and the hostname also matters when self-hosting n8n on Coolify.

Authoritative publication comes before cache refresh

Your zone lives on an authoritative nameserver. The authoritative service publishes the records. Once an update has reached that service, a direct query can show the new value without relying on a recursive resolver. Providers can use several authoritative servers, so their own update process also matters.

Almost nobody queries it directly. A visitor’s device asks a recursive resolver, usually run by their internet provider or by a public service. That resolver asked your nameserver at some point in the past, kept the answer, and will keep serving it until it decides the answer is too old to trust.

TTL controls cached record answers

Every record carries a time to live, measured in seconds. It is an instruction to every resolver that caches the record: keep this for no longer than this many seconds. A record with a TTL of 86400 may be served from cache for a full day after it was fetched.

This produces the part that confuses people most. The TTL that governs your wait is the one that was published before you made the change, because that is the value resolvers were given when they cached the old answer. Lowering the TTL at the same time as the change does nothing for anyone who already has a copy.

Why two people see different sites

Each resolver fetched your record at its own moment, so each one expires at its own moment. During a change the internet genuinely holds two answers at once, and which one a given visitor gets depends on which resolver they use and when that resolver last asked.

This is also why a propagation checker is of limited help. It queries a list of resolvers and reports what each returns. A mixed result can reflect cached answers or inconsistent authoritative data. It does not prove that the change was configured correctly or reveal when the last cache will refresh.

A TTL example, and two limits

Consider a hypothetical resolver that fetched a record at 12:00 with a TTL of 3,600 seconds. The record changes at 12:10. If the resolver uses its existing cached answer until ordinary expiry, that old answer can remain in use until 13:00. A resolver that first asks after the update may already see the new value. This is an illustration of the clock, not a measured cutover guarantee.

A missing name can also be cached. RFC 2308 describes negative caching: a previous answer that a name does not exist can persist after the record has been created. That is different from caching an old address, and it helps explain why a newly added hostname can appear absent.

Ordinary expiry is not the only policy in use. RFC 8767 describes serving stale DNS data in particular failure conditions to preserve resolution. That exception is another reason a TTL calculation cannot promise the exact moment every visitor sees a change.

Nameserver changes involve separate delegation records

Changing the records inside your zone is governed by your own TTLs. Changing which nameservers are authoritative is not. That delegation is held by the registry for your top level domain, it carries its own TTL, and that TTL is not controlled by changing the TTL of an A record inside your zone.

That is the case worth planning around. Keep the old host serving the site until the delegation has fully turned over, because the visitors still being sent to it are real and will see whatever is there.

What to check when it seems stuck

Query your authoritative nameserver directly first. If it returns the new value, compare it with the answers seen by affected visitors. A correct DNS answer alone does not prove that the certificate, web server or application is working. If it returns the old value, possible causes include an unsaved change, the wrong authoritative server or publication still in progress. Check the provider’s status before assuming that either waiting or repeating the edit will resolve it.

HTTPS after the hostname resolves

DNS caching and TLS validation describe different parts of a request. Cloudflare SSL modes explained covers the browser-to-proxy and proxy-to-origin connections, including why a working browser HTTPS connection does not establish the origin certificate’s validity.

Waiting is also the wrong response to some errors. A record that is missing, or a CNAME whose target does not resolve, produces Cloudflare error 1016 and does not improve with time, and a request refused by a security rule returns error 1020 however long you leave it.

Sources

ShareHacker News

Did this fix it?

We re-test the guides that stop working. Telling us is the fastest way to get one fixed.

Questions people also ask

Why do DNS checkers show different answers?
They can query resolvers with different cached answers. Provider publication differences can also matter. Mixed answers alone do not establish that the configuration is correct or predict when every visitor will see the change.
Can I force a resolver to drop its cache?
You can control some caches on your own devices. Some public resolver services also offer cache-flush tools, but those cannot clear every visitor’s resolver. Normal TTL expiry and exceptional serve-stale behaviour depend on the resolver.
Do nameserver changes use the same TTL as an A record?
No. Delegation and address records have separate caching. Changing nameservers can involve registry publication, delegation and glue records as well as records inside the zone. A shorter A-record TTL does not by itself control the whole change.

Devchandra ShresthaEditor, A2Z Skills

I run A2Z Skills and edit everything that goes out. My own testing is desktop and web: Windows and macOS repair, domains, DNS and hosting. If a step in one of our guides does not work on your machine, I am the one who reads the email and fixes the post.

Join the guide notification list

Email delivery is not active yet. No sharing or selling your address.