How DNS propagation works and how long it takes
DNS propagation is the delay between changing a DNS record and everyone seeing the new value. Nothing is actually pushed out. Your DNS provider updates its authoritative servers, usually within minutes, but recursive resolvers keep serving the old answer until their cached copy reaches the end of its TTL. Most record changes show up within minutes to a few hours. Nameserver changes can take up to 48 hours.
What decides how long a change takes
- The TTL of the old record. A resolver that cached a record with a TTL of 86400 seconds can keep serving it for up to a day after you change it.
- Negative caching. If a resolver looked up a name before it existed, it caches the “no such name” answer for the time set in the zone’s SOA record (RFC 2308).
- Nameserver changes. When you move a domain to new nameservers, the NS records in the parent zone change too. The .com and .net zones publish those with a TTL of 172,800 seconds. That is two days, and the origin of the “48 hours” rule of thumb.
- Your registrar. Some registrars take a while to send nameserver updates to the registry.
- Local caches. Browsers, operating systems and home routers can cache DNS answers as well.
How to make a DNS change take effect faster
- Lower the TTL of the record, for example to 300 seconds, at least one old TTL period before the change. With a one-day TTL, do this a day ahead.
- Make the change.
- Compare answers from several resolvers with the DNS propagation checker.
- Once the new value is stable, raise the TTL again to reduce the query load.
How to check whether a change has propagated
Start at the source. Find the domain’s authoritative nameservers with the nameserver lookup and query one directly, for example with dig @ns1.example.net example.com A. If it returns the new value, the change is live and any remaining delay is caching.
Then compare public resolvers. The propagation checker asks Cloudflare, Google and Quad9 at the same time from this server. It is a quick comparison of three large resolvers, not a test from every country.
To clear caches you control, flush your computer’s DNS cache: ipconfig /flushdns on Windows, or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS. Cloudflare and Google also let you ask their public resolvers to drop a cached name, through Cloudflare’s purge cache page and Google Public DNS’s flush cache page.
A worked timeline
Take a website that is moving to a new server. Its A record has a TTL of one day.
- Monday 09:00: you lower the TTL to 300 seconds. Resolvers that cached the record before this still hold it with the one-day TTL.
- Tuesday 09:00: every cached copy with the long TTL has expired. All resolvers now hold the record for five minutes at most.
- Tuesday 10:00: you change the A record to the new server’s address.
- Tuesday 10:05: every resolver has fetched the new address. Visitors reach the new server.
- Tuesday afternoon: you raise the TTL back to an hour or more.
Skip the first step and the change still works, but some visitors keep reaching the old server until Wednesday morning.
Why large resolvers are inconsistent for a while
A public resolver such as 8.8.8.8 is not one machine. The same address is answered from many sites around the world, and each site keeps its own cache. Two lookups a second apart can land on different machines and return different answers until both caches have expired. A result that flips between old and new is a normal sign that a change is in progress.
Moving a website without downtime
- Copy the site to the new server and test it there, using the server’s address or a temporary name.
- Install a TLS certificate on the new server before any visitors arrive.
- Lower the TTL and wait for the old one to pass.
- Change the DNS record.
- Leave the old server running. Visitors with a cached answer still reach it.
- Watch the old server’s logs. When requests stop arriving, switch it off.
If the site stores data, such as orders or comments, freeze changes or point both servers at the same database during the overlap so nothing is written to the old copy alone.
Moving email without losing messages
Mail is more forgiving than the web, because sending servers queue a message and retry for days when delivery fails. It still pays to overlap. Create the mailboxes at the new provider, change the MX records and keep the old mailboxes open until the old TTL has passed. Check both for a few days.
Update the SPF record so that it lists the old and the new provider during the move, and remove the old one afterwards.
Changing nameservers when DNSSEC is on
A signed domain needs one more step. The DS record at the registrar matches the keys of the current DNS provider. If you switch nameservers while it is in place, the new provider’s answers fail validation and the domain stops resolving for many users. Remove the DS record first, wait for it to expire from caches, then change nameservers and turn DNSSEC on again at the new provider. The DNSSEC checker confirms each stage.
Telling caching apart from a mistake
When a change does not seem to take effect, ask the domain’s authoritative nameservers directly before blaming caches. Three outcomes are possible.
- The authoritative servers return the old value. The change was not saved, or it was made at a provider that no longer runs the domain’s DNS. Check which nameservers the domain uses.
- The authoritative servers disagree with each other. The provider has not copied the change to all of its servers, or an old nameserver is still listed for the domain.
- The authoritative servers return the new value and public resolvers return the old one. This is caching, and waiting out the TTL fixes it.
Only the third case is propagation. The first two never fix themselves, however long you wait.
What a short TTL costs
A short TTL means resolvers ask your nameservers more often. For most domains the extra load is trivial, though a provider that bills per query will charge a little more. The bigger trade-off is resilience. With a long TTL, resolvers can keep answering from cache if your DNS provider has a brief outage. With a five-minute TTL, an outage is felt almost at once.
Propagation myths
- “Every DNS change takes 24 to 48 hours.” That figure belongs to nameserver changes. Other records follow their own TTL, which is often minutes.
- “My provider is still pushing the update out.” Providers update their own servers almost at once. The wait is caches expiring elsewhere.
- “A propagation checker shows the whole internet.” It shows a sample of resolvers at one moment.
- “Flushing my DNS cache makes the change live.” It refreshes your own device and nobody else’s.
- “A TTL of zero makes changes instant.” Many resolvers apply a minimum of their own, so very low values are not honoured everywhere.
Common questions
Why do I see the new website while a colleague still sees the old one?
You are probably using different resolvers, or one of you has the old answer cached locally. The change reaches each resolver as its cached copy expires.
Can I force DNS to propagate?
No. You can keep TTLs short before a change and flush the caches you control. Every other resolver picks up the change when its cache expires.
Does propagation affect email?
Yes. Sending servers use the same resolvers, so an MX change takes effect for each sender as its cached MX records expire. Keep the old mail server running until the old TTL has passed.
What TTL should I use from day to day?
An hour suits most records. Use 300 seconds for records you may need to change in a hurry, and a day for records that rarely change, such as MX.
What should I do once a change has propagated?
Raise the TTL again if you lowered it, remove records that pointed to the old service and switch off the old server once its traffic has stopped.
Why did my change appear instantly?
The resolver you used had no cached copy, or the old record had a short TTL. A brand new name also appears at once for resolvers that had never been asked about it.
Does a new TTL take effect straight away?
No. Resolvers that already hold the record keep it for the old TTL. The new value applies from the next time each one fetches the record.
Can a resolver ignore my TTL?
Some do. A few resolvers hold answers longer than the TTL allows, and some apply a minimum. Both are outside your control, which is another reason to keep the old service running for a while.