NetSecTools

Home / Guides / DNS propagation: how long it takes and how to speed it up

DNS propagation: how long it takes and how to speed it up

· 9 min read

You change an IP address in your DNS settings, reload the page and still see the old site. A colleague sees the new one. Your phone shows something else. This is what people call DNS propagation, and it is one of the most misunderstood parts of running a website.

What “propagation” really is

Nothing is being pushed around the internet. DNS is a system of caches. When someone looks up your domain, their resolver asks your name servers, gets an answer and remembers it for a while. Until that time runs out, the resolver keeps answering with the old value without asking again.

So “propagation” is simply waiting for old cached answers to expire, one resolver at a time. Your name servers show the new value immediately. Everybody else catches up as their cache expires.

TTL decides the delay

Every DNS record has a TTL (time to live), in seconds. It is the maximum time a resolver may keep that answer.

TTL Meaning
60 1 minute
300 5 minutes
3600 1 hour
86400 1 day
172800 2 days

The delay you should expect is up to the old TTL, not the new one. If the old record had a TTL of 3600, a resolver that cached it one second before your change keeps serving it for nearly an hour.

Why changes take different times

  • Ordinary records (A, CNAME, MX, TXT) take as long as their TTL. Most are set between 5 minutes and a few hours.
  • Name server (NS) changes are the slowest. The delegation lives at the parent zone (for example .com), and its TTL is often 48 hours. This is where the “up to 48 hours” rule comes from.
  • Negative caching. If a name did not exist when someone looked it up, resolvers may remember that “no” for a while. A new record may take longer to appear for them. The duration comes from the SOA record.
  • Resolvers that ignore TTL. A few internet providers and devices keep answers longer than they should.
  • Local caches. Your operating system and browser have their own caches on top of your provider’s.

A plan for changing a record with minimal downtime

  1. Lower the TTL in advance. At least one old TTL before the change (24 to 48 hours for a record with a 1 day TTL), reduce it to 300 seconds or less.
  2. Prepare the new server. Make sure the new destination already works and serves the same site. Test it before you switch.
  3. Make the change at your DNS provider.
  4. Check at the source. Confirm that your authoritative name servers now return the new value.
  5. Watch it spread. Use the DNS Propagation Checker with your new value as the expected answer. It asks four independent public resolvers and tells you which ones already return it. You can leave it running and it will check again every 30 seconds.
  6. Keep the old server running until the new value has spread widely, so visitors who still hit the old address get a working site.
  7. Raise the TTL again once everything is stable, for example to 3600, to reduce lookups and speed up loading.

Mail changes need extra care

When you change MX records, mail servers that still hold the old value will keep delivering to the old server for a while. Keep the old mailbox active until the change has settled, and consider forwarding from the old server. Check the result with a DNS Lookup of the MX records, and verify your sender settings afterwards with the Email Security Checker.

How to see what you are getting

Different tools can show different answers because they use different resolvers.

  • Ask a specific resolver from the command line:
dig example.com @1.1.1.1
dig example.com @8.8.8.8
nslookup example.com 1.1.1.1
  • Ask the authoritative name server directly to see the truth with no cache involved:
dig example.com NS +short
dig example.com @ns1.your-provider.com

Remember that those four resolvers are a sample. Your own provider’s resolver may still hold the old answer.

Clearing your own cache

If the world sees the new site but you do not, flush your local caches:

Windows:  ipconfig /flushdns
macOS:    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux:    resolvectl flush-caches

Also try a private browser window, and restart the browser, which keeps its own DNS cache.

Common mistakes

  • Waiting for propagation when the change was not saved. Always check the authoritative servers first.
  • Changing the TTL and the record at the same time. The new TTL only applies once the old cached answer expires.
  • Shutting down the old server immediately.
  • Expecting a different answer from a CDN. Content delivery networks return different addresses by location on purpose, so resolvers disagree and that is normal.
  • Forgetting DNSSEC. If you change DNS provider with DNSSEC enabled, follow the proper order or the domain may become unreachable for some visitors. See what DNSSEC is and how to enable it safely.

For the meaning of each record type involved, see DNS records explained.