How to Flush DNS on a Windows Machine

How to Flush DNS on a Windows Machine

Flushing your DNS cache clears outdated or corrupted DNS records on your computer. This helps fix issues like some websites not loading, domain just migrated but still resolves to old server, or intermittent DNS errors.

Quick Summary
  • Windows 10/11 (Command Prompt): ipconfig /flushdns
  • Windows 10/11 (PowerShell): Clear-DnsClientCache
  • Renew IP (optional): ipconfig /release then ipconfig /renew
  • Restart DNS Client service (advanced): net stop dnscache then net start dnscache

Method A — Windows 10/11 via Command Prompt (Admin)

  1. Press Win key, type cmd.
  2. Right-click Command PromptRun as administrator.
  3. Run:
    ipconfig /flushdns
  4. You should see: Successfully flushed the DNS Resolver Cache.

Method B — Windows 10/11 via PowerShell (Admin)

  1. Press Win key, type PowerShell.
  2. Right-click Windows PowerShellRun as administrator.
  3. Run:
    Clear-DnsClientCache
  4. No news is good news—there’s no success message on this command.

Method C — Windows 7/8.1 (or Legacy)

  1. Open Command Prompt as Administrator.
  2. Run:
    ipconfig /flushdns

Optional — Renew Your IP Address

This forces Windows to drop and request a fresh IP configuration from your router/DHCP.

  1. Open an elevated Command Prompt.
  2. Run:
    ipconfig /release
    ipconfig /renew

Optional — Restart the DNS Client Service (Advanced)

If flushing didn’t help, restarting the DNS service can reset the resolver state.

  1. Open an elevated Command Prompt.
  2. Run:
    net stop dnscache
    net start dnscache

Verify the Cache Was Cleared

After flushing, you can display the cache to confirm it’s empty or repopulated with fresh entries:

ipconfig /displaydns

(Optional) Clear Browser DNS Cache

Some browsers keep their own DNS resolver cache. You may also try:

  • Chrome / Edge (if available): visit chrome://net-internals/#dns or edge://net-internals/#dns and click Clear host cache.
  • Or simply close all browser windows and reopen.
When should I flush DNS?
  • After moving a website to a new server or changing DNS records.
  • When a domain resolves to an old IP or you get intermittent DNS_PROBE errors.
  • When only your PC has trouble loading a site that others can access.
Troubleshooting
  • Access Denied / Requires Elevation: Make sure you Run as administrator.
  • No effect after flush: Try renewing IP or restarting DNS Client service. Also power-cycle your router.
  • Still seeing old server: Your ISP or router may cache DNS. Try a different resolver (e.g., 1.1.1.1 or 8.8.8.8) in your adapter settings.
  • Winsock reset (last resort):
    netsh winsock reset
    netsh int ip reset
    Reboot after running these commands.

Need Help?

If you’re flushing DNS to view your updated iCoreHosting website and still see the old server, please contact iCoreHosting Support. Provide your domain and a screenshot of any error messages for faster assistance.


Tags: DNS, Windows, Flush DNS, Troubleshooting, Network

  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

Why Does It Take Time for a Domain’s DNS to Resolve After Renewal?

When a domain expires and is subsequently renewed, there can be a delay in the DNS resolution...

How to Add Google Verification DNS TXT Records in cPanel

How to Add Google Verification TXT Records in cPanel   If Google has asked you to verify your...

Recommended Domain Nameserver Configuration for Optimal Email Service with iCoreHosting

Article Subject Recommended Domain Nameserver Configuration for Optimal Email Service with...

How to Get Wix Web Address and Update DNS A Record

How to Get Wix Web Address and Update DNS A Record   Step 1: Retrieve Wix IP Address   If...

How to Get Your Wix Domain DNS IP Address from the Wix Dashboard

How to Get Your Wix Domain DNS IP Address Step 1: Log in to Wix Go to https://www.wix.com...