How to Clear DNS Cache

Learn how to clear DNS cache safely on common devices and browsers, understand when it helps, avoid mistakes, troubleshoot issues, and read FAQs.

TechnologyEdited by Pramod Tiwari
2 min read

Quick Answer

To clear DNS cache, use the DNS flush command for your operating system or clear host cache in your browser, then restart the browser and test the website again.

What You Need

  • Computer or browser
  • Admin access for some systems
  • Terminal or Command Prompt if needed
  • Website to retest

Safety Precautions

  • Use commands only from trusted sources.
  • Do not change DNS server settings unless you know why.
  • Clearing DNS cache does not erase browsing history.
  • Restart apps after flushing cache.
  • Contact network support for managed devices.

Step-by-Step Instructions

  1. Step 1

    Confirm the issue

    Check whether one site or many sites are failing.

  2. Step 2

    Close sensitive work

    Save browser forms before restarting apps.

  3. Step 3

    Open command tool

    Use Command Prompt, Terminal, or browser host cache tools.

  4. Step 4

    Run flush command

    Use the command that matches your operating system.

  5. Step 5

    Restart browser

    Close and reopen the browser after clearing cache.

  6. Step 6

    Retest website

    Visit the site again and check if it resolves.

  7. Step 7

    Try router or DNS settings

    If issues remain, restart router or check DNS settings carefully.

Practical Example

Example: A website recently moved servers, so you flush DNS cache, restart the browser, and load the updated site.

Common Mistakes

  • Using the wrong OS command
  • Expecting it to fix all internet issues
  • Changing DNS servers unnecessarily
  • Not restarting browser
  • Confusing DNS cache with browser cache
  • Ignoring router cache

Troubleshooting

Site still fails

Try another network, browser, DNS server, or wait for DNS propagation.

Command not recognized

Check the command for your operating system.

No admin access

Ask device or network admin for help.

Only browser has issue

Clear browser host cache or normal site data.

FAQs

Does clearing DNS cache delete history?

No, it clears domain lookup records, not browsing history.

When should I flush DNS?

When a site resolves incorrectly after DNS changes or stale lookup issues.

Is it safe to clear DNS cache?

Usually yes, if you use the correct command.

Does router have DNS cache?

Some routers cache lookups; restarting can help.

Technology2 min read

How to Find WiFi Password

Learn how to find a saved WiFi password on your router, Windows, Mac, iPhone, or Android, protect privacy, troubleshoot access, and read FAQs.

Technology3 min read

How to Clear Cache

Learn how to clear cache on browsers, phones, and apps, what cache means, what gets deleted, when to clear it, mistakes, troubleshooting, and FAQs.

Help us improve this guide

Tell us about an outdated instruction, unclear step, broken link or safety concern. Do not include passwords, account numbers, medical records or other sensitive information.

Email a correction or suggestion