DNS & Hosting 5 min read

How DNS Propagation Works & Troubleshooting Delay

Why does it take up to 48 hours for DNS changes to display, and what tools can you use to test propagation instantly.

1. Overview

When you buy a domain name, migrate to a new server, or set up custom email accounts, you must update your DNS records. Often, your registrar displays a warning saying: 'Changes may take up to 48 hours to propagate'. Let's understand why this happens.

2. Signs & Symptoms

During DNS propagation, you may notice:

  • The website loading the old server for you, but displaying the new layout to a friend in a different state.
  • Emails failing to resolve or bouncing immediately after nameserver updates.
  • Tool metrics showing mismatched IP resolutions on global nodes.

3. Technical Explanation

DNS acts as the internet's phonebook. To prevent querying root servers for every single page load, DNS resolvers (ISPs, routers, computers) cache records locally based on their **TTL (Time to Live)** value.

If your domain's TTL was set to 86400 seconds (24 hours), and you change the IP address (A record), DNS resolvers will continue loading the old cached IP address for up to 24 hours before querying the authority nameserver for updates.

4. Step-by-Step Fixes

How to speed up and debug DNS changes:

  1. Reduce TTL beforehand: If you plan to migrate a site, lower your DNS record TTL values to 300 seconds (5 minutes) at least 24 hours before the transfer. This ensures quick caching updates.
  2. Check global resolution: Go to whatsmydns.net, type your domain, select the record type (A, CNAME, TXT), and click search to trace global servers.
  3. Flush local DNS cache: Force your computer to purge old records.
    # On Windows (cmd/PowerShell):
    ipconfig /flushdns
    
    # On macOS:
    sudo killall -HUP mDNSResponder
  4. Clear Google & Cloudflare resolver caches: Go to Google Public DNS Flush or Cloudflare Purge Cache pages to clear their public caches manually.

5. Summary Checklist

Keep these rules in mind:

  • Lower TTL values before migrations to minimize downtime.
  • Allow 24-48 hours for nameserver changes (NS records).
  • Use global propagation checkers to monitor updates.
  • Flush local caches to verify edits immediately.
🟢 Online & Ready Average response < 1hr
Hire on Fiverr