EN · $ USD
Domains, DNS and SSL

DNS Changed but Website Not Loading? How Long DNS Propagation Takes

8 min read Updated: Sunucu Atlas technical team

In short

DNS propagation for an A record change usually takes as long as the old record's TTL (a few minutes to a few hours), while a nameserver change can take up to 24-48 hours. The timing depends on the TTL value and on caches in your browser, operating system, router and ISP. While you wait, you can test the site by adding the new IP to your hosts file and use nslookup or dig to see which IP each resolver returns.

In this guide
  1. What is DNS propagation?
  2. What is TTL and how does it control propagation time?
  3. Where to change the TTL in cPanel
  4. Why does the site load in some places but not others?
  5. Checking propagation: dnschecker, nslookup and dig
  6. Test without waiting: open the site on the new server with the hosts file
  7. How to flush your own DNS cache
  8. Propagation is done but the site still won't load
  9. Quick checklist for a zero-downtime migration
  10. Next step: the right hosting for your site

DNS propagation usually finishes within a few minutes to a few hours; after a nameserver change it can take up to 24-48 hours. The timing depends on the old record's TTL value and on the caches kept by your internet service provider, operating system and browser. The good news: while you wait, you can check right away whether your site works on the new server using the hosts file and a few command-line tools.

What is DNS propagation?

When you type a domain name into your browser, your device asks a recursive resolver to translate that name into an IP address. This is usually your ISP's DNS server or a public resolver such as 8.8.8.8 or 1.1.1.1. The resolver gets the answer from the domain's authoritative nameserver and keeps it in its cache for the length of the TTL.

So nothing actually “spreads.” Thousands of resolvers around the world ask for the new record once the old answer they hold expires. Because those caches expire at different times, for a while some users see the new server and others still see the old one. That transition period is what we call DNS propagation.

What is TTL and how does it control propagation time?

TTL (Time To Live) tells resolvers how long, in seconds, to cache a DNS record. An A record with a TTL of 3600 can be used by a resolver for up to one hour without asking again.

  • A / AAAA or CNAME record change: Takes at most the old record's TTL. With a TTL of 300 that is a few minutes; with 14400 it can be up to 4 hours.
  • Nameserver (NS) change: The change is passed through your registrar to the top-level domain servers (such as .com or .com.tr). NS records on those servers have long TTLs (172800 seconds for .com, which is 48 hours). That makes this the slowest type of change.
  • Negative caching: If a record was queried before it existed, the “no such record” answer is also cached, for the time set in the SOA record. This is often why a newly added subdomain takes a while to load.
Tip: If you are planning a migration, lower the TTL of your current A record to 300 seconds at least one TTL period before the change. Once the switch is complete, you can set it back to 3600 or 14400.

We explain what each record type does in detail in our guide to A, CNAME, MX and TXT records.

Where to change the TTL in cPanel

If your domain's nameservers point to your hosting provider, you manage DNS records in cPanel:

  1. In cPanel, click the Zone Editor icon in the Domains section.
  2. Open the Manage link next to the domain.
  3. On the row of the A record you want to change, click Edit, enter 300 in the TTL field and save.
  4. Repeat the same step for the www record and, if needed, the mail record.

Keep in mind: the new TTL only takes effect after the old TTL expires. If the old value was 14400, wait at least 4 hours after lowering the TTL before making the actual IP change. If your nameservers point to another DNS service (for example, your registrar's DNS panel), you need to make this change there; in that case, editing records in cPanel has no effect.

Why does the site load in some places but not others?

DNS answers are cached not in one place but in several layers:

  1. Browser cache: Chrome, Edge and Firefox keep their own DNS caches.
  2. Operating system cache: The DNS Client service on Windows, mDNSResponder on macOS and, on most Linux systems, systemd-resolved.
  3. Modem or router: Most home and office routers cache DNS.
  4. Internet service provider: Some ISP resolvers do not strictly honor the TTL value.

That is why your site may load from the new server on your phone over mobile data while the office Wi-Fi still shows the old server. This is not an outage; it is a caching difference.

Checking propagation: dnschecker, nslookup and dig

Web-based check

Tools such as dnschecker.org query your domain against resolvers in different regions of the world. If you select the A record type and most locations show the new IP address, propagation is largely complete. To check a nameserver change, select the NS record type.

nslookup on Windows

nslookup alanadiniz.com
nslookup alanadiniz.com 8.8.8.8
nslookup -type=NS alanadiniz.com 1.1.1.1

The first command shows your own resolver's answer, the second shows Google DNS's answer. If they differ, the problem is a cache on your side.

dig on macOS and Linux

dig +short alanadiniz.com A
dig +short alanadiniz.com NS
dig alanadiniz.com A @1.1.1.1

To see the source of truth, query the authoritative nameserver directly, for example dig alanadiniz.com A @ns1.yenisaglayici.com. If the authoritative server returns the new IP, your configuration is correct and all that is left is for caches to expire. When you query a public resolver, the TTL column in the answer shows how much cache time is left for that record on that resolver.

Test without waiting: open the site on the new server with the hosts file

The hosts file is a local name-to-IP mapping table that your computer checks before asking DNS. If you add your domain with the new server's IP address there, only your computer will load the site from the new server. This is the most reliable way to check a site after a migration.

  1. Find the new server's IP address in your hosting panel (the shared IP address is listed in the general information section on the cPanel home page).
  2. Open the hosts file with administrator rights: on Windows, start Notepad with “Run as administrator” and open C:\Windows\System32\drivers\etc\hosts; on macOS and Linux, use sudo nano /etc/hosts.
  3. Add these lines to the end of the file (replace the example IP with your own server address):
    203.0.113.10   alanadiniz.com
    203.0.113.10   www.alanadiniz.com
  4. Save the file, clear your DNS cache with the commands below and restart your browser.
  5. Test the home page, the contact form, the admin login and SSL. Remember to delete these lines when you are done; otherwise you will not be able to reach the site yourself if the IP changes later.

If you want to test a single request without touching the hosts file, curl is enough (curl comes built in on Windows 10 and later):

curl -I --resolve alanadiniz.com:443:203.0.113.10 https://alanadiniz.com

How to flush your own DNS cache

# Windows (Command Prompt as administrator)
ipconfig /flushdns

# macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

# Linux (systemd-resolved)
sudo resolvectl flush-caches

In Chrome, also use the “Clear host cache” button at chrome://net-internals/#dns. Restarting your router clears the router cache. You cannot clear your ISP's cache; for testing, you can temporarily set your device's DNS to 1.1.1.1 or 8.8.8.8.

Propagation is done but the site still won't load

If dnschecker shows the new IP, you have cleared your cache and the site still won't load, the problem is no longer DNS. Check the following in order:

  • Did the nameservers really change? Check the Name Server lines in the whois alanadiniz.com output. Forgetting to save the change in the registrar's panel is a common mistake. See our guide to pointing a domain to your hosting for the steps.
  • Is the domain added to the hosting account? If it is not set up as the primary domain or an addon domain, the server shows a default page.
  • Did you forget the www record? If you changed only the root domain's A record and left the www record on the old IP, the www address still goes to the old server.
  • SSL warning: The certificate on the new server can only be validated after the domain points to the new IP. If you see a “Your connection is not private” warning, wait for the certificate to be issued or trigger it again from the panel.
  • Are the files in the right folder? The primary domain uses public_html; an addon domain uses the document root you assigned to it.
  • DNSSEC: If DNSSEC was enabled at the old provider and the DS record is still at the registrar, the domain may not resolve at all after the nameserver change. Remove the DS record before migrating.

Quick checklist for a zero-downtime migration

  1. Set the TTL of your A records to 300 at least 24 hours before the migration.
  2. Copy the files and database to the new hosting and test with the hosts file.
  3. Create the email accounts on the new side in advance; once the MX record changes, email starts arriving at the new server.
  4. Change the DNS and keep the old hosting running for at least 48 more hours.
  5. During that time, check for orders, form submissions and emails that landed on the old server and move them over.

You can find the full process step by step in our hosting migration guide.

Next step: the right hosting for your site

If you are looking for a new plan as part of a migration, our web hosting plans with LiteSpeed web server and NVMe storage come with cPanel, a free SSL certificate and business email accounts, and you can test your site with the hosts file before pointing DNS. If your site runs on WordPress, WordPress hosting with one-click setup via WP Toolkit makes management easier after the move. If you also want to host a second domain on the same account, the SA-CP-2 web hosting plan, which includes addon domains, is a good place to start. Sunucu Atlas infrastructure is located in Istanbul, and if you get stuck you can open a support ticket for help.

Frequently asked questions

Does DNS propagation really take 48 hours?

Not always. A record changes usually take as long as the old record's TTL and are often done within a few hours. Times close to 48 hours are mostly seen with nameserver changes.

Can I speed up DNS propagation?

Once a change is made, you cannot speed up other people's caches. But by lowering the TTL to 300 seconds before the change, you can make the next switch propagate within minutes, and you can clear the cache on your own side.

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

The two devices are using different DNS resolvers and different caches. Clearing the cache on the computer with ipconfig /flushdns and restarting the browser usually fixes it.

Does editing the hosts file affect the site for everyone?

No. The hosts file only affects the computer you edit it on. That makes it a safe way to test a new server before going live; delete the lines you added when testing is done.

Will I lose email when I change DNS?

Once the MX record points to the new server, email starts arriving there; during the transition some messages may land on the old server. If you keep the old hosting running for at least 48 hours and check the messages there, you will not lose anything.

For this guide

Recommended plans

Want to launch your site smoothly after a migration with LiteSpeed, NVMe storage and free SSL? Our cPanel web hosting and WordPress hosting with WP Toolkit fit exactly that need.

SA-CP-1

cPanel
Recommended

20 GB NVMe disk

$0.39/mo

+VAT

  • Memory1 GB
  • LocationIstanbul
  • 1 Hosted Domains
  • 50 GB Traffic
  • 5 Email Account Limit
  • 2 Databases

SA-CP-2

cPanel

40 GB NVMe disk

$0.69/mo

+VAT

  • Processor2 cores
  • Memory2 GB
  • LocationIstanbul
  • 1 Hosted Domains
  • 100 GB Traffic
  • 10 Email Account Limit
  • 5 Databases

SA-CP-3

cPanel

60 GB NVMe disk

$0.98/mo

+VAT

  • Processor3 cores
  • Memory3 GB
  • LocationIstanbul
  • 1 Hosted Domains
  • 200 GB Traffic
  • 25 Email Account Limit
  • 10 Databases

Web Hosting — all plans WordPress Hosting — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.