Skip to content
Technology for businesses since 2008

Help center · Domains and cPanel

DNS taking forever to propagate? Understand why and how to check

DNS takes time to propagate because information about your domain is stored (cached) in several places: at your internet provider’s servers, on your computer, and in your browser. Each of them only asks again after the validity period, called the TTL, runs out. So right after a change, one person may see the new site while another still sees the old one. Usually the difference goes away within a few hours, but there is no guaranteed deadline.

This article explains what happens during that interval, how to check whether the change has taken effect, how to clear your computer’s cache, and how to test the site on the new hosting before you even point your domain.

What is DNS propagation

DNS is the “phone book” of the internet: it says where your domain leads, both for the website and for email. When you change the DNS servers or edit a record, that list is updated at the source, but the copies spread across the internet don’t all change at the same time. Propagation is the time those copies take to be refreshed.

If you haven’t made the switch yet, see the step-by-step guide in how to point a domain to hosting.

Why it takes time

Where the cache is What happens
Record TTL Each DNS record carries a validity period. Until it expires, anyone who has already looked up the domain keeps using the old answer.
Internet provider The provider’s DNS servers store answers so they can respond faster. Each provider refreshes them at its own pace.
Computer and router The operating system (and sometimes the router) also keeps answers for a while.
Browser The browser keeps its own cache and may insist on the old address.

Since each step runs on its own clock, the result varies from person to person and from network to network. If you plan to change the address of a live site, lowering the record’s TTL in advance (when your DNS panel allows it) usually shortens the wait, but the gain depends on each case.

How to check whether it has propagated

From the terminal

On Windows, open Command Prompt and use nslookup:

nslookup yourdomain.com

On Mac or Linux, open Terminal and use dig:

dig yourdomain.com
dig NS yourdomain.com

The first command shows the IP address the domain points to; the second shows the name servers. Compare the results with the IP address and the DNS servers the hosting provided. If they match, your computer already sees the change. Remember that yourdomain.com is just an example: use your own domain.

With online tools

There are websites that query the domain from DNS servers in several countries and show whether the answers are already the same. Just search for “check DNS propagation” and enter the domain. They give you a general idea, but keep in mind that they show the view from other servers, not necessarily the view from your network.

From another network

Opening the site on your phone using mobile data (without Wi-Fi) or in a private window is a quick test. If the new site appears there, the change is in effect, and what’s left is the cache on your computer or network.

How to clear your computer’s DNS cache

  1. On Windows: open Command Prompt and type ipconfig /flushdns. A message should appear saying the cache was flushed.
  2. On Mac: open Terminal and type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. The command asks for your user password, and the exact name may vary between macOS versions.
  3. In the browser: close it and open it again, or use a private window. Some browsers also let you clear their internal DNS cache in the settings.
  4. If nothing changes, restart the router and try again.

Testing through the hosts file before pointing the domain

The hosts file lets your computer reach the domain on the new server without actually changing the DNS. That way you can check that the site works on the hosting before you point the domain.

  1. Find the IP address of the hosting server (ask support through the contact page if you don’t know where to find it).
  2. Open the hosts file as administrator. On Windows, it is at C:\Windows\System32\drivers\etc\hosts. On Mac, it is at /etc/hosts.
  3. Add a line at the end with the IP address and the domain:
203.0.113.10 yourdomain.com www.yourdomain.com
  1. Save, clear the DNS cache, and open the site in your browser. It should load from the new hosting.
  2. After the test, delete that line. If you forget, your computer will keep going to the fixed IP even after the DNS changes.

The IP above is just an example. This test only affects your own machine, and it requires the domain to already be configured on the hosting, as in how to set up an addon domain in cPanel.

It has been 24 to 48 hours and nothing has changed

That timeframe is a common reference, not a guarantee. If it has passed and the site still shows the wrong content, check these points:

  1. Name servers: check at Registro.br (the Brazilian domain registry), or wherever the domain was registered, that the DNS servers are exactly the ones the hosting provided, with no extra space or mistyped letter.
  2. Zone records: if you manage DNS somewhere else, check that the A record for the domain and for www points to the correct IP address.
  3. Domain on the hosting: confirm that the domain was added in cPanel. Without that, the server doesn’t know which site to serve.
  4. Result of nslookup or dig: compare it with what the hosting provided. If the result is correct and only your computer shows the old one, the problem is the local cache.
  5. Certificate: if the site opens but the browser warns about security, see how to install SSL in cPanel. MigraCloud uses automatic Let’s Encrypt SSL, but it can only be issued after the domain points to the server.

If everything is correct and the problem persists, contact us through the contact page with the domain and the results of the commands.

Frequently asked questions

How long does DNS propagation take?

It usually takes from a few minutes to a few hours, and in some cases more than a day. There is no guaranteed deadline, because it depends on the TTL and on each provider’s cache.

Do I need to do anything during propagation?

No. The change happens on its own. Avoid changing the DNS again without need, because that restarts the wait and can confuse the diagnosis.

Why does the site open on my phone but not on my computer?

Because the two networks query different DNS servers, each with its own cache. Clear the cache of your computer and browser, as shown above.

Does propagation affect email too?

Yes. Email records (MX) also go through propagation, so during the change, messages may arrive at either the old or the new service. Check that the email records were recreated before you change the DNS.

Can I find out the exact timeframe for my domain?

No. For specific cases on your account, ask support through the contact page.

More on Domains and cPanel

See all →

How to create a subdomain in cPanel

Create a subdomain such as blog.yourdomain.com in cPanel, set its file folder, and check what you need for it to open with HTTPS.

3 minDomains and cPanel

Help center

Looking for something else?

See all tutorials, organized by topic.