Networking

DNS Propagation Checker: How Long DNS Changes Take

"DNS propagation" is not a push: nothing sends your new record around the world, and each resolver keeps its old answer until that answer's TTL runs out. To check it yourself, ask the authoritative server and a few public resolvers the same question with dig or nslookup, and compare what they return.

Replace example.com with your domain in every command below.

Check DNS propagation with dig or nslookup

A web-based propagation checker does one thing: it sends the same query to resolvers in many locations and lists the answers. You can do the same from a terminal. First find the authoritative name servers, then ask one of them for the record directly:

dig example.com NS +short
dig @ns1.example-dns.net example.com A +noall +answer

Here @server names the server to query, the record type goes after the name, and +noall +answer prints only the answer section. The authoritative server returns the value you currently have configured, so it shows whether your change was saved. Now ask public resolvers:

dig @8.8.8.8 example.com A +noall +answer
dig @8.8.4.4 example.com A +noall +answer

8.8.8.8 is one of Google Public DNS's addresses (the other is 8.8.4.4). Use any other public resolver the same way. Example output (not from a real domain):

example.com.    247    IN    A    203.0.113.10

The second column is the TTL. When it comes from a resolver's cache it is the time remaining, not the value you configured. Run the same command a few seconds later and, if the answer is cached, the number is lower. The authoritative server shows the full configured TTL.

On Windows, where dig is not installed by default, nslookup takes the server as the second argument and the record type as -type=:

nslookup -type=A example.com 8.8.8.8
nslookup -type=NS example.com

Microsoft's documentation shows this form: the first parameter is the name to look up and the second is the DNS server to use. For record types such as MX, CNAME and TXT, see DNS record types explained.

Why it is called propagation, and why that is misleading

DNS is a lookup system with caching. When a resolver fetches a record, RFC 1035 defines the record's TTL as a 32-bit number of seconds that specifies how long the record may be cached. Until that time passes, the resolver can answer from memory without asking your name server again. A TTL of zero means the record is for the current transaction only and must not be cached.

So when you edit a record, only the authoritative server changes at that moment. Every other resolver keeps its copy until its own timer expires. Two resolvers that cached the record at 10:00 and 10:50 will switch over 50 minutes apart. That spread is the "propagation" a checker displays. For the full lookup path from root servers down, see how DNS works.

How long a DNS change takes

The worst case is the TTL the old record had when the resolver last cached it. Not the TTL you set in the new record.

Old record TTLLongest wait for a resolver that cached it just before your change
60 seconds1 minute
300 seconds5 minutes
3600 seconds1 hour
86400 seconds24 hours

The table is arithmetic on the TTL definition, not a measurement. Cloudflare's documentation gives one real default: a TTL of Auto is 300 seconds, and for DNS-only records you can choose a TTL from 60 seconds (30 on Enterprise) up to 1 day. Other DNS hosts use different defaults, so read the TTL off your own record with dig.

RFC 1035 says what the TTL permits. I have not found a source on how individual resolvers behave beyond that, so treat the figures above as the expected upper bound and verify with dig.

Plan a change so the wait is short

  1. Look up the current TTL: dig @8.8.8.8 example.com A +noall +answer. Ask the authoritative server instead to see the full configured value.
  2. Lower the TTL on the record (for example to 300 seconds) at least one old-TTL period before the change. If the old TTL was 86400 seconds, do this 24 hours ahead.
  3. Make the real change.
  4. Check the authoritative server first, then public resolvers, until they agree.
  5. Raise the TTL again if you want fewer lookups to your name servers.

Why a new record can still say "does not exist"

Resolvers cache failures too. RFC 2308 says that a name error (NXDOMAIN) should be cached, and that the cache time is the lower of the zone's SOA record TTL and the SOA MINIMUM field. If anyone looked up your new name before you created it, their resolver may keep answering "does not exist" for that long, even though the record now exists. RFC 2308 also notes that negative-cache values over one day have been found to be problematic, so zones usually keep this value small.

In nslookup the same failure appears as Nonexistent domain. In dig it is the status NXDOMAIN in the header. If you see it for a record you know you added, check the authoritative server first. If the authoritative server answers correctly, the wrong answer is cached downstream and will clear on its own.

Clear the caches you control

Your own computer caches answers as well. Flush it before concluding a change has not arrived: how to flush the DNS cache on Windows, macOS and Linux. Browsers keep their own short-lived caches too, so restart the browser or test with dig, which bypasses them.

Changing name servers

Moving a domain to a different DNS host means changing its NS records at the registrar. Those delegation records are cached like any other, with their own TTL set where the parent zone publishes them, so the wait is not under your control. Cloudflare's name server documentation does not state a time for it, and I am not stating one either. Keep the old DNS host's records in place and identical until dig example.com NS returns the new servers from several public resolvers.

If checkers still disagree

  • The authoritative server has the old value. The change never saved, or you edited the wrong zone. This is not propagation.
  • Several name servers disagree with each other. Query each one from the NS list with dig @ns... example.com A. If they differ, the zone has not synced between your provider's servers, which is a provider problem.
  • Only one resolver is stale. Wait for its TTL to run down using the TTL column. Public resolvers sometimes offer a cache-flush page, but check the provider's own documentation, since Google's setup page does not cover flushing.
  • Only your machine is stale. Flush the local cache and restart the browser.

Frequently asked questions

How long does DNS propagation take?
It takes as long as the old answer's TTL, counted from the last time each resolver cached it. If the old record had a TTL of 300 seconds, every resolver is current within about 5 minutes of your change. If it had a TTL of 86400 seconds, some resolvers can serve the old answer for up to 24 hours.
Why does my DNS propagation checker show different results in different countries?
Each checker location asks a different resolver, and each resolver cached the old record at a different moment. Their cached copies expire at different times, so during the wait some return the new value and some the old one. Once every cache has expired, all locations agree.
Can I speed up DNS propagation?
Not after the change is made, because you cannot reach into other people's caches. You can only lower the TTL ahead of time, wait for the old TTL to pass, then make the change. You can clear your own computer's cache and, on some public resolvers, request a flush.
Is a record I just added visible immediately?
Usually yes, if no resolver has looked the name up before. If one has, and got a 'does not exist' answer, that answer is cached too, for a time set by the zone's SOA record (RFC 2308). Until it expires, that resolver keeps saying the name does not exist.

Sources