FAQ - How to Flush and Reset the DNS Cache in Windows 10

Flushing the DNS resolver cache can help resolve DNS related problems in Microsoft Windows 10. Issues would include web site not found errors or not being able to view certain web pages that have changed.

Flushing the DNS resolver cache can help resolve DNS related problems in Microsoft Windows 10. Issues would include web site not found errors or not being able to view certain web pages that have changed.

A command box will flash on the screen for a split second and the DNS Resolver cache is cleared.

Option 1 – Windows Command

■ To reset the DNS resolver cache, perform the following steps:
■ Select the “Start” button, then type “cmd“.
■ Right-click “Command Prompt“, then choose “Run as Administrator“.
■ Type ipconfig /flushdns then press “Enter“. (be sure there is a space before the slash)

Option 2 – Windows PowerShell

■ Select the “Start” button, then type “powershell“.
■ Select “Windows PowerShell“.
■ Type the following command, then press “Enter“:
■ Clear-DnsClientCache

This article applies to Windows 10, 8, 7, XP, 2000, 2003 and 2008.

What is the DNS Resolver Cache?

Whenever you visit a website using it’s domain name (i.e. microsoft.com), your browser is directed to a DNS server where it learns the IP address of that website. You are then directed to that website. A record of the IP address that domain name points to is created within Windows so that if you visit that same website again, the information is accessed quicker. These records that get created make up the DNS Resolver Cache.

Why would flushing the DNS Resolver Cache fix anything?

Sometimes an IP address to a site may change. If the DNS Resolver Cache has the old IP address record, it may result in your computer not being able to reach the site. Cached data can also become corrupt. Therefore, clearing it is a step you can take whenever you cannot connect to a site.

Can I view the data in the DNS Resolver Cache?

Yes. From a command prompt, you can use the “ipconfig /displaydns” command or the “Get”>-DnsClientCache” PowerShell command to view the data.