User Tools

Site Tools


networking:dns:dns-propagation

DNS Propagation

DNS propagation is the time it takes for a change to a DNS record to become visible to everyone on the Internet. After you change a record, some users see the new value right away, while others still see the old one for a while.

The word “propagation” is a little misleading. Nothing is pushed out to the world. The change is already live on your authoritative DNS server. What takes time is the expiry of cached copies held by recursive resolvers.


Why Does It Take Time?

When a recursive resolver looks up a record, it keeps the answer in its cache for the length of the record's TTL. Until that time runs out, the resolver gives the cached answer and does not ask the authoritative server again.

  • Each resolver cached the old value at a different moment.
  • Each cached copy therefore expires at a different moment.
  • Until it expires, that resolver keeps returning the old value.

This is why two people can query the same domain at the same time and get different answers. See DNS TTL for how caching works.


What Decides How Long It Takes?

Factor Effect
TTL of the old record The main factor. A record with a TTL of `86400` (24 hours) can be cached for up to a day after the change.
Resolver behavior Some resolvers keep records longer than the TTL, or ignore very low TTL values.
Name server changes Changing the name servers of a domain at the registrar can take longer, because the delegation (NS records at the parent zone) has its own TTL.
Local caches Browsers, operating systems and routers keep their own short caches.

In most cases a change is fully visible within the old TTL. Very long delays are usually caused by a high TTL or by a resolver that keeps records longer than it should.


How to Make a Change Smoother

If you plan a change, such as moving a website to a new server, prepare in advance:

# **Lower the TTL first.** At least one full old-TTL period before the change, set the TTL of the record to a low value such as `300` (5 minutes).
# **Make the change.** Update the record to the new value.
# **Check it** from several resolvers (see below) until they all return the new value.
# **Raise the TTL again** to its normal value once the change is stable.

Keep the old server running until the change has reached everyone, so visitors who still see the old address are not sent to a dead server.

<note tip> A TTL of `300` increases the number of queries to your DNS server. Raise it again after the change. </note>


Checking Propagation

To see whether a change has propagated:

  • Query the record through several different resolvers and compare the answers. If they all match the new value, the change has propagated.
  • Query the authoritative name server directly. It should return the new value immediately. If it does not, the problem is in the zone itself, not in propagation.
  • Compare the remaining TTL in each answer. A resolver that still returns the old value will show a TTL that counts down to the moment it expires.

Your own computer may keep showing the old address after everyone else sees the new one. Flush the local DNS cache, or test from another network.


DNS Propagation and Telenegar DNS Check

Telenegar DNS Check queries a record through several DNS servers and shows the answer and the TTL from each one. This makes it easy to see which resolvers already return the new value and which still return the old one, and how long the cached copy will last.


Common Problems

Symptom Likely cause
Some resolvers show the new value, others the old one The old TTL has not yet expired everywhere. Wait and check again.
The authoritative server shows the old value The change was not saved or was made in the wrong zone. This is not a propagation delay.
The change is visible for you but not for a customer A local or ISP cache. Ask them to flush the cache or try another network.
Name server change not visible after a long time The registrar did not update the delegation yet, or the new name servers do not have the zone.


dns propagation ttl cache resolver authoritative

networking/dns/dns-propagation.txt · Last modified: by 127.0.0.1