Knowledgebase

How to flush DNS cache on Windows, Mac, Android and Chrome

This guide shows you how to flush the DNS cache on Windows, macOS, Linux, Android, iPhone and in Chrome, Edge and Firefox. Your devices remember the IP address of every website for a while. After you move a site to a new server, change DNS records or renew an expired domain, that saved answer can be out of date, so you still see the old site or an error. Clearing the DNS cache makes your device ask again and get the current answer.

Windows 10 and 11

  1. Click Start, type cmd, right-click Command Prompt and choose Run as administrator.
  2. Run:
    ipconfig /flushdns
  3. You should see "Successfully flushed the DNS Resolver Cache."

In PowerShell you can also use Clear-DnsClientCache.

macOS

  1. Open Terminal (Applications → Utilities).
  2. Run the command below and enter your Mac password when asked (nothing appears while you type):
    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Linux

Most current distributions use systemd-resolved:

resolvectl flush-caches

On older systems the command is sudo systemd-resolve --flush-caches. If your system does not run a local DNS cache, there is nothing to flush.

Chrome, Edge and other Chromium browsers

Chrome keeps its own DNS cache, separate from the operating system.

  1. Open chrome://net-internals/#dns (in Edge: edge://net-internals/#dns).
  2. Click Clear host cache.
  3. Optionally open chrome://net-internals/#sockets and click Flush socket pools to close old connections.

Firefox

Open about:networking#dns and click Clear DNS Cache. If you do not see the button, simply restart Firefox.

Android

  1. Turn Airplane mode on for about 10 seconds, then off. This resets the network and its DNS cache.
  2. In Chrome for Android you can also open chrome://net-internals/#dns and tap Clear host cache.
  3. If you set a Private DNS in Android settings, try switching it to Automatic for a test.

iPhone and iPad

Turn Airplane mode on and off, or restart the device. iOS has no separate button for the DNS cache.

Your router

Many home and office routers cache DNS answers too. Restarting the router clears that cache. If the problem is still there, your ISP's resolver may still hold the old answer; in that case wait, or temporarily use a public resolver such as 1.1.1.1 or 8.8.8.8.

Important: flushing the cache only clears answers saved on your devices. It cannot speed up the rest of the internet. If you just changed nameservers, other networks will update on their own schedule; see Why DNS changes take time (DNS propagation).

Common problems

  • "The requested operation requires elevation": Command Prompt was not opened as administrator.
  • Still seeing the old site after flushing: check the hosts file, VPN or proxy, and clear the browser cache (cached pages are different from cached DNS).
  • Works on one device only: flush every device separately; each one has its own cache.

Frequently asked questions

Is it safe to flush the DNS cache?

Yes. It only deletes saved lookups; your device builds them again automatically. Pages may load a fraction of a second slower the first time.

When should I flush DNS?

After a website move, a DNS record change, a domain renewal, or when you see errors like DNS_PROBE_FINISHED_NXDOMAIN for a site that works for other people.

How do I check what the domain points to now?

Use nslookup example.com 8.8.8.8 or an online checker, and compare with your hosting IP. See How to manage DNS records.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • flush DNS, clear DNS cache, ipconfig flushdns, chrome net-internals dns, mac flush dns, android dns cache, مسح كاش DNS

Was this answer helpful?

0 Users Found This Useful