Glossary

DNS Propagation

DNS propagation is the time it takes for a DNS change to be seen everywhere. Nothing is pushed out: resolvers keep cached answers until their TTL runs out, then fetch the new one.

Why does a DNS change not show up immediately?

Because DNS is built on caching. When a resolver looks up your record, it stores the answer for as long as the record's TTL (time to live) allows, often an hour or a day. Every user behind that resolver gets the cached answer until it expires. When you change the record at your provider, the authoritative servers answer with the new value right away, but resolvers that cached the old one keep serving it until their copy expires. The word "propagation" suggests the change travels outward; in reality, old copies age out one by one.

How long is the wait for each kind of change?

ChangeTypical waitWhy
A, CNAME, MX or TXT recordUp to the old record's TTLResolvers cache the old answer that long
A new record that never existedUp to the negative cache time from the SOAResolvers may have cached "does not exist"
Name server (NS) change at the registrarHours, up to about two daysParent zone NS records often have long TTLs

So the TTL you set before a change decides how fast the change spreads. The negative caching time is part of the zone's SOA record; see DNS SOA record.

How do I check propagation?

Ask several public resolvers and the authoritative server directly:

dig +short shop.example.com @ns1.your-dns-host.example
for r in 1.1.1.1 8.8.8.8 9.9.9.9 208.67.222.222; do printf '%-16s ' $r; dig +short shop.example.com @$r | tail -1; done
dig shop.example.com @1.1.1.1 | grep -A1 'ANSWER SECTION'

The first confirms what your provider is serving. The loop compares big public resolvers. The last shows the remaining TTL in the cached answer, counting down toward the moment that resolver will fetch the new value. More dig options are on The dig command.

How do I move a server with almost no delay?

  1. At least one old TTL before the move, lower the record's TTL to 300 seconds or less.
  2. Prepare the new machine, copy data and test it directly by IP or with curl --resolve.
  3. Do a final data sync, then change the A record to the new address.
  4. Most users switch within five minutes. Keep the old server running, or proxying to the new one, for a day to catch slow resolvers.
  5. Raise the TTL back to an hour or more once stable.

With the old machine still answering during the overlap, users never hit a dead address. For databases, make the old server read-only or forward writes to the new one during that window. The same plan works when moving between our cities, for example from Phoenix to Ashburn.

Can I flush the caches myself?

Only your own. On a Linux machine using systemd-resolved, resolvectl flush-caches clears the local cache; browsers keep their own short cache too. Some public resolvers offer a web form to purge a name. You cannot clear caches at other people's providers, which is why lowering TTL in advance is the reliable method.

Why do some users still see the old site after a day?

Usual suspects: a resolver that ignores TTLs and caches longer, a local hosts file entry left from testing, an application that resolved the name once at startup and never again (common with long-running services and some proxies), or a CDN or reverse proxy still configured with the old origin address. Check each before assuming DNS itself is slow.

Does this affect certificates and mail?

Yes. HTTP-01 certificate validation follows DNS, so issue certificates on the new server after its records resolve there, or use DNS-01 validation, which does not depend on the A record. Mail servers cache MX records like any other, so keep the old mail server accepting messages during the transition. Let's Encrypt with nginx and Email server cover both.

Machines People Often Migrate To

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E2Intel Xeon E3-1270 v34 / 832 GB DDR31x 480 GB SSD2x 1 Gbps$38.32$114.96 (3 months)
S1Intel Xeon E-2276G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$53.32$53.32 (1 month)
S3Intel Xeon E-2356G6 / 1264 GB DDR42x 1 TB NVMe2x 10 Gbps$80.38$80.38 (1 month)
S5Intel Xeon E-2276G6 / 12128 GB DDR42x 1 TB NVMe2x 10 Gbps$88.72$88.72 (1 month)

Keep Reading

DNS SOA record

The start of authority record at the top of every DNS zone, what its serial, refresh and negative TTL fields do, and how to read it with dig.

Open

DNS resolver

The server that turns names into addresses for your machine, how recursive lookups work, and how to run a fast, private resolver on Linux.

Open

Static IP address

An IP address that stays the same, why servers need one, how a /31 point-to-point setup works and how to check the network config on Linux.

Open

The dig command

Query DNS precisely with dig: record types, short answers, specific resolvers, full delegation traces, reverse lookups and DNSSEC checks.

Open

FAQ

Quick Answers

Usually up to the TTL of the old record, often minutes to hours. Name server changes can take up to about two days.

Lower the record TTL to 300 seconds at least one old TTL before the change. You cannot speed up caches after the fact.

Query several public resolvers with dig and compare the answers and remaining TTLs.

Your resolvers fetched the new answer while theirs still has the old one cached until its TTL expires.

Yes, for at least a day, so users whose resolvers still have the old address are served.