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
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.
Check it
Query the authoritative server first to confirm that the change exists, and then compare resolvers.
# 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 # macOSWhy 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.
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.
Related reading
- 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.