Skip to content

Troubleshooting guide

DNS propagation: how long it takes and how to check it

DNS changes do not spread across the internet. Resolvers hold cached answers until the TTL expires, so the wait was decided by the old TTL.

3 min read11 sectionsUpdated

On this page

Key points

  • The old record's TTL sets the wait.
  • Lower the TTL in advance of a planned change.
  • Nameserver changes can take up to 48 hours because of parent zone TTLs.
  • Some resolvers cache longer than they should.

What is really happening

The word propagation suggests something being pushed out. In fact, your authoritative server changes immediately, and each recursive resolver keeps its cached copy until that copy's TTL runs out. Different resolvers cached the record at different times, which is why some people see the new value before others.

Why it can take longer

  • A high TTL on the old record: 86,400 seconds is a full day.
  • Registrar-level nameserver changes, governed by the TLD's own TTLs.
  • Negative caching, where a record that did not exist stays "nonexistent" for the SOA minimum.
  • Browser and OS caches.

Check it

Query the authoritative server first to confirm that the change exists, and then compare resolvers.

bash
# Authoritative answer: the truth
dig +short NS example.com
dig @ns1.example-dns.net example.com A +noall +answer

# What public resolvers have, with remaining TTL
for r in 1.1.1.1 8.8.8.8 9.9.9.9; do echo "$r: $(dig @$r example.com A +noall +answer)"; done

# Flush your own cache
sudo resolvectl flush-caches      # Linux
sudo dscacheutil -flushcache      # macOS

Migrate with no downtime

  1. Lower the TTL to 300 seconds at least one full old-TTL period in advance.
  2. Run both servers and verify the new one using a hosts-file entry.
  3. Change the record.
  4. Keep the old server running until logs show traffic has stopped.
  5. Raise the TTL again once you're stable.

Why the old server must stay up

Even after every well-behaved resolver has updated, some traffic keeps reaching the old address for a while: long-lived connections, applications that resolved the name once at startup and never again, and the odd resolver that ignores TTLs. Java applications historically cached DNS for a long time for this very reason. Plan for a tail of a few days. For database or stateful moves, DNS alone cannot give you a clean switch, so stop writes or use replication and cut over at the application.

Catch it automatically

DNS monitoring compares answers with expected values, and warns when records change unexpectedly. See DNS TTL best practices for sensible defaults.

Frequently asked questions

How long does DNS propagation take?

Up to the previous TTL for record changes. Nameserver changes can take up to 48 hours.

Can I force propagation?

No. You can only wait, or flush the caches you control.

What TTL should I use?

A few hours in steady state, and 300 seconds around a planned change.

Check it now, free

  • DNS lookup: A, AAAA, CNAME, MX, TXT, NS, SOA and CAA records.
  • What is Total Blocking Time (TBT)?: Total Blocking Time explained: long tasks, how TBT is calculated, the 200 ms target in Lighthouse, how it relates to INP and how to break up main-thread work.
  • MySQL slow query log: how to enable and read it: Enable the MySQL slow query log without a restart, choose a sensible threshold, summarise it with mysqldumpslow and pt-query-digest, and fix what it finds.
  • How to reduce Total Blocking Time (TBT): Reduce Total Blocking Time: find long tasks in the Performance panel, split JavaScript, yield to the main thread and defer third-party scripts until needed.
  • What are DORA metrics?: DORA metrics explained: deployment frequency, lead time for changes, change failure rate and time to restore, how to measure each from your tools.
  • What is URL monitoring?: URL monitoring explained: scheduled checks of a URL for status code, content, response time, redirects and SSL, with sensible settings.
  • Cloudflare error 1016 "Origin DNS error": how to fix it: Fix Cloudflare error 1016 Origin DNS error: CNAME records pointing to names that do not resolve, deleted origins and load balancer pools, with checks.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.