DNS

Clearing DNS Cache

Updated November 2026 10,563 views 2 min read
DNS | Updated November 2026

If you have made DNS changes (like updating nameservers or A records) but your computer still loads the old version of your site, your local DNS cache may be holding onto the old records. Flushing your DNS cache forces your computer to look up the fresh records.

01. Windows

  1. Open Command Prompt - Search "cmd" in the Start menu, right-click, and select "Run as administrator"
  2. Run: ipconfig /flushdns
  3. You should see: "Successfully flushed the DNS Resolver Cache"

02. macOS

  1. Open Terminal (Applications > Utilities > Terminal)
  2. Run: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Enter your Mac password when prompted

03. Linux

The command depends on your DNS resolver:

  • systemd-resolved (Ubuntu 18+, Fedora): sudo systemd-resolve --flush-caches
  • nscd: sudo service nscd restart
  • dnsmasq: sudo service dnsmasq restart

04. Browser DNS Cache

Browsers maintain their own DNS cache separate from the operating system. Even after flushing the OS cache, your browser may still use cached DNS entries.

  • Chrome: Navigate to chrome://net-internals/#dns and click "Clear host cache"
  • Firefox: Navigate to about:networking#dns and click "Clear DNS Cache"
  • All browsers: Close and reopen the browser completely, or use an incognito/private window

05. Still Seeing the Old Site?

If flushing the cache does not help, the DNS change may not have fully propagated yet. DNS propagation can take up to 48 hours worldwide. Check the current propagation status with our DNS Lookup tool.

For a deeper explanation of DNS propagation, see DNS Changed But Site Not Showing.

DNS Not Resolving?

If your domain is not resolving at all after 48 hours, open a ticket and we will check your DNS configuration.

Open a Support Ticket

Frequently Asked Questions

Why do I still see my old site after changing DNS?

Your computer or network is likely holding the old records in its DNS cache. Flushing that cache forces a fresh lookup. Browser and router caches can also hold old records, and full propagation can take up to 24 to 48 hours.

How do I flush the DNS cache on Windows?

Open Command Prompt and run ipconfig /flushdns. You should see a confirmation that the resolver cache was flushed. Then close and reopen your browser and reload the site.

How do I flush the DNS cache on a Mac?

Open Terminal and run sudo dscacheutil -flushcache followed by sudo killall -HUP mDNSResponder, entering your password when prompted. Then reload the site in a fresh browser window.

I flushed DNS but still see the old site, what now?

Clear your browser cache or test in a private window, and flush your router if it caches DNS. If it persists, DNS may still be propagating worldwide (up to 24 to 48 hours), which you can check with an online DNS propagation tool.

Quick Recap

  1. Windows: ipconfig /flushdns in admin Command Prompt
  2. macOS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Linux: sudo systemd-resolve --flush-caches
  4. Clear browser DNS cache too - Chrome and Firefox have their own caches
  5. Allow 48 hours for full DNS propagation worldwide

DNS troubleshooting · Last updated November 2026 · Browse all DNS articles

Share: X in Reddit f Email
  • 130 Users Found This Useful

Was this answer helpful?

Related Articles

I am having problems with my current registrar transferring the domain to you

DNS | Updated November 2026 Domain transfers between registrars sometimes stall or fail. If...

CAA Records: Controlling Which Authorities Can Issue Your SSL

DNS | Updated July 2026 A CAA record is a small DNS entry that tells the world exactly which...

DNS Report Tools

DNS | Updated November 2026 DNS report tools let you check your domain's DNS records, verify...

What Is a PTR Record (Reverse DNS) and Why Your Email Needs It

DNS | Updated July 2026 A PTR record, better known as reverse DNS, is the quiet piece of DNS...

DNS Changed But Site Not Showing

DNS | Updated November 2026 You changed your nameservers or DNS records to point to Ultra Web...



Save 30% on web hosting - Use coupon code Hosting30