
When you update a DNS Record, you may expect the change to appear immediately.
But sometimes, your website still points to the old server, even after you update the DNS Record.
Why does this happen?
This is related to DNS Propagation.
In this article, we will learn what DNS Propagation means, how DNS updates work, and why DNS changes may take time to appear across different networks.
1. What Is DNS Propagation?
DNS Propagation is the term commonly used to describe the time it takes for DNS changes to become visible to different DNS Resolvers and users.
When you update a DNS Record, the authoritative DNS provider stores the new information.
However, some DNS Resolvers may still have the old record stored in their cache.
This means different users may receive different DNS answers for a period of time.
For example, some users may reach the new server, while others may still reach the old server.
2. What Happens When You Change a DNS Record?
Let's use a simple example.
Imagine your domain points to this IP address:
Old IP Address:
192.0.2.10
You decide to move your website to a new server and update the A Record.
New IP Address:
192.0.2.20
The DNS provider now has the updated record.
However, a DNS Resolver that already stored the old IP address may continue using it until its cached record expires.
After the cached record expires, the Resolver can perform a new lookup and receive the updated IP address.
This is why DNS changes may not appear immediately for every user.
3. Why Does DNS Propagation Take Time?
There are several reasons why DNS changes may take time to appear.
DNS Caching
DNS Resolvers store DNS Records in their cache to reduce repeated queries.
If a Resolver already has the old record, it can continue returning that information until its TTL expires.
Different DNS Resolvers
Users do not all use the same DNS Resolver.
For example:
- Some users use their ISP's DNS Resolver.
- Others use Google Public DNS.
- Others use Cloudflare DNS.
These resolvers may have cached the old record at different times.
As a result, some users may receive the new IP address while others still receive the old one.
Negative DNS Caching
Sometimes, a DNS Resolver searches for a domain or record that does not exist yet.
It may store the negative response, such as NXDOMAIN, in its cache.
If you create that DNS Record later, the Resolver may still return the old negative response until its negative cache entry expires.
This is another reason why newly created DNS Records may not appear immediately.
4. Does DNS Propagation Always Take 24–48 Hours?
You may have seen websites or hosting providers mention that DNS changes can take up to 24–48 hours.
But this does not mean every DNS update needs that much time.
There is no single fixed propagation time for all DNS changes.
The actual time depends on several factors:
- The TTL of previously cached records.
- The caching behavior of DNS Resolvers.
- Negative DNS caching.
- The type of DNS change being made.
- The DNS provider's update process.
Some providers apply record changes very quickly, but users may still receive old answers from their DNS caches.
5. How Can You Prepare for DNS Changes?
When planning a server migration or changing your DNS configuration, a few steps can help.
Lower the TTL Before the Change
If you plan to change a DNS Record, you can lower its TTL in advance.
For example:
- Old TTL: 86400 seconds (24 hours).
- New TTL: 300 seconds (5 minutes).
However, changing the TTL does not affect records that are already cached with the previous TTL.
You should lower the TTL and allow the old cache period to expire before making the actual change.
Update the DNS Record
After preparing the TTL, update the DNS Record with the new value.
For example, change the A Record from:
192.0.2.10
To:
192.0.2.20
Check the DNS Results
You can check your domain using different DNS Resolvers to see whether they return the new record.
For example, you can compare results from:
- Google Public DNS.
- Cloudflare DNS.
- Your ISP's DNS Resolver.
This helps you understand why different users may see different results.
After the update is stable, you can increase the TTL again if needed.
Summary
Let's review what we learned:
| Concept | Meaning |
|---|---|
| DNS Propagation | The time DNS changes take to become visible across different resolvers |
| DNS Cache | Stores DNS information temporarily |
| TTL | Controls how long DNS records can stay cached |
| Negative Caching | Stores responses when a requested domain or record does not exist |
| DNS Update | Changing an existing DNS Record or adding a new one |
Understanding DNS Propagation helps developers manage domain changes, plan server migrations, and understand why DNS updates may not appear immediately.
In the next article, we will explore Domain Registrar vs DNS Provider and understand the difference between buying a domain and managing its DNS Records.
About the author
- Software Engineer blending deep algorithmic problem solving with scalable Frontend Architecture. Obsessed with high-performance web systems, Core Web Vitals, accessibility, and modern UI engineering.
Comments
Join the discussionNo comments yet. Be the first to comment.
DNS & Domain Fundamentals for Developers
A practical introduction to DNS and domain fundamentals for developers. Learn how domain names work, how DNS lookups happen, and how DNS records connect your domain to websites, servers, and email services. This series explains the concepts developers commonly face when deploying projects, connecting custom domains, configuring DNS records, and troubleshooting domain-related issues. The goal is to understand what happens behind the scenes without going too deep into networking.




