Chapter 3 · Lesson 15 of 22
Domains and HTTPS

DNS propagation myths and what really happens

DNS propagation is a loose name for caches expiring; nothing is pushed, and an authoritative nameserver already serves the new record the moment you save it.

By the end you will

Verify a DNS change at the authoritative nameserver and tell a record change apart from a nameserver change.

Time
12 min
Level
Intermediate
Check
4 questions
You need
  • dig installed
  • A domain you recently changed or plan to change

“DNS propagation” suggests that your change travels outward from your registrar across the internet. It does not. Nothing is pushed to anyone. The authoritative nameservers for your zone return the new data as soon as you save it, and every other resolver keeps showing the old data until its cached copy expires. What people call propagation is just DNS propagation in the loose sense: a crowd of independent caches running out of time at different moments.

How it works#

A recursive resolver only learns an answer when a client asks and the resolver’s cache is empty or expired. At that moment it fetches the record from the authoritative server and stores it for the TTL it was given. After that it replies from memory. Your edit changes the source of truth, not any of these copies.

So the worst case after a record edit is the old TTL. If the record had a TTL of 3600 and a resolver cached it a second before your change, that resolver can serve the old value for about an hour. A resolver that cached it 59 minutes earlier will switch in a minute. A resolver that never saw it fetches the new value immediately. The details of the cache layers are in TTL and DNS caching explained.

Myth 1: changes are pushed worldwide#

They are pulled, on demand, one cache at a time. This is why there is no “propagation progress bar” that can be accurate. Websites that show a world map of checks are querying a set of resolvers and reporting what each currently returns. That is useful as a sample, but a green map does not mean every user is updated.

Myth 2: it always takes 24 to 48 hours#

That number is a leftover from times when default TTLs were long. Today a normal record change is bounded by the TTL that was set before you edited. A record with a 300 second TTL is stale for at most about five minutes in a well behaved cache. The long waits people report usually come from a long old TTL, a negative cached answer, or a nameserver change.

Myth 3: you can force it#

You can flush your own machine with resolvectl flush-caches on Linux, which helps your own testing. You cannot flush your ISP’s resolver or a visitor’s device. The tool you control is the TTL, and only in advance.

Check the source first#

Before you wonder why the change is slow, confirm the authoritative server has it. Find the nameservers and ask one directly:

bash
dig example.com NS +short
dig @ns1.example.net example.com A +noall +answer

If that answer is right, your change is live at the source and the rest is caches. If it is wrong, the edit did not save, you edited the wrong zone, or the domain’s nameservers are not the ones you think. Compare with a public resolver:

bash
dig @1.1.1.1 example.com A +noall +answer
dig @8.8.8.8 example.com A +noall +answer

Different answers from different resolvers are normal during the window. To see the whole delegation path from the root down, use dig +trace example.com. More options are in Check DNS with dig.

Why some resolvers see it first#

Each resolver has its own cache and its own timing. One may have cached the old record five minutes ago and another an hour ago. Large public resolvers use many back end servers, so two queries seconds apart can reach caches in different states and give different answers. Some resolvers also apply minimum or maximum TTL rules of their own. None of this is a fault.

Record change vs nameserver change#

These two behave differently, and mixing them up causes most surprises.

A record change (new A record IP, new TXT) happens inside your zone. The old TTL on that record decides how long stale copies last.

A nameserver change moves your zone to a different provider. The NS records that say where your zone lives are stored in the parent zone (for example the com servers), and that data is cached with its own TTL, which you usually cannot lower. During the switch, some resolvers still ask the old nameservers and others ask the new ones. If the old provider still serves the zone, both give working answers. If you delete the old zone early, resolvers with cached delegation see failures. So:

  1. Recreate every record at the new provider first and compare it with the old one using dig against each server.
  2. Change the nameservers at the registrar.
  3. Leave the old zone in place for a few days, at least the longest NS TTL you can see.
  4. Remove it only after checking that no traffic still depends on it.

You can read the parent’s NS TTL by querying a parent server, for example dig @a.gtld-servers.net example.com NS for a .com name, and looking at the TTL on the authority section. See What is a DNS zone for delegation.

Check it worked#

All three of these should agree on the new value after the old TTL has passed:

bash
dig @ns1.example.net example.com A +short
dig @1.1.1.1 example.com A +short
dig example.com A +short

Then load the site with curl -I https://example.com and confirm it responds from the new server.

Edge cases and gotchas#

  • Negative answers stick: a resolver that saw the name as non-existent may keep saying so for the SOA minimum time.
  • Mixed answers during a move: some visitors reach the old server and some the new one, so keep both serving the site until the old TTL has passed.
  • Registrar edits are not DNS edits: changing contacts or locking a domain does not touch records, only nameserver fields do.
  • Wrong zone: after a nameserver switch, editing the old provider’s panel has no effect on live answers.
  • Browsers cache too: a browser can hold a lookup after dig already shows the new value.
  • TTL changes also wait: lowering the TTL is itself a change that old caches only notice when they refresh.

Troubleshooting#

SymptomLikely causeFix
Authoritative answer is oldThe edit did not save or the wrong zone was editedCheck the NS records and edit the zone at that provider
Authoritative answer is new, resolver answer oldResolver cache has not expiredWait for the remaining TTL, check it with dig
Site fails for some users after changing nameserversThe old zone was removed too earlyRestore the old zone until NS caches have expired
NXDOMAIN right after creating a recordNegative caching from an earlier queryWait, or test using another resolver
Mixed results on a propagation checkerResolvers are at different points in their TTLsRely on the authoritative answer, not the map
Works on mobile data, not on Wi-FiDifferent resolvers with different cache stateFlush the local cache and recheck

Quick reference#

bash
dig example.com NS +short                       # who is authoritative
dig @ns1.example.net example.com A +noall +answer   # the source of truth
dig @1.1.1.1 example.com A +noall +answer       # a public cache
dig +trace example.com                          # follow delegation

Next#

Continue with Subdomains and wildcard DNS records.

Check what you learned4 questions
1What actually happens when you edit a DNS record?
2How do you ask the authoritative nameserver directly for your A record?
3Which kind of change usually takes longer to settle everywhere?
4Why might one resolver show your new record before another does?

Frequently asked questions

How long does DNS propagation take?

There is no fixed time. A record change is visible everywhere once cached copies expire, which is at most the old TTL. A nameserver change can take longer because of long TTLs on NS records in the parent zone.

Why does my DNS change show for me but not for a friend?

You and your friend use different resolvers with separate caches. Yours may have expired or never cached the old record. Check the authoritative server to confirm the new answer is already there.

Can I speed up DNS propagation?

Not after the fact. You can lower the TTL ahead of a planned change, and flush your own caches, but you cannot flush other people's resolvers.

Is 24 to 48 hours of DNS propagation real?

It is an old rule of thumb based on long default TTLs. Most record changes become visible in minutes to hours, depending on the TTL that was set before the change.

Sources

View MD Edit
Share
Helpful?
Progress is saved in this browser only.

Keep going: guides and tutorials

View MD Edit
Share
Helpful?
Run this on your own server

Levelrail deploys apps from git with health-checked releases and one-click rollback.

docker pull ghcr.io/glincker/levelrail:latest Install Levelrail From GLINR Studios