Windows

How do I clear DNS cache on Windows 11?

Updated 2026-08-21

Quick answer

To clear the DNS cache on Windows 11, open Command Prompt as an administrator and enter 'ipconfig /flushdns'.

Clearing the DNS cache on Windows 11 helps resolve connectivity issues by removing outdated or corrupted DNS records.

Steps

  1. 1

    Open Command Prompt as Administrator

    Press 'Win + X' and select 'Windows Terminal (Admin)' from the menu. If 'Command Prompt (Admin)' is available, you can select that instead.

  2. 2

    Confirm User Account Control

    If prompted by User Account Control, click 'Yes' to allow changes to your device.

  3. 3

    Type the DNS Flush Command

    In the Command Prompt window, type 'ipconfig /flushdns' and press 'Enter'.

  4. 4

    Verify DNS Cache Clearance

    Look for the confirmation message 'Successfully flushed the DNS Resolver Cache'.

Why Clear DNS Cache?

Clearing the DNS cache can resolve network issues, enhance security, and ensure your system uses the most current DNS information.

How DNS Cache Works

The DNS cache stores IP addresses of web servers for recently accessed websites, speeding up future visits by reducing DNS server queries.

Troubleshooting DNS Issues

If you experience slow browsing or can't access certain websites, clearing the DNS cache may fix these issues by removing outdated DNS records.

Watch out for

  • Some network configurations may require additional steps.
  • Clearing the DNS cache does not directly affect internet speed.
  • DNS cache may rebuild over time, requiring periodic clearance if issues persist.

FAQ

What is DNS cache?

DNS cache is a temporary database on your computer that stores records of recent visits to websites and internet domains.

How often should I clear my DNS cache?

Clearing the DNS cache is not regularly necessary but can be helpful if you experience connectivity issues or after DNS changes.

Does clearing DNS cache affect browsing history?

No, clearing the DNS cache does not affect your browsing history; it only removes stored DNS records.