Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Windows Flush DNS in Windows 10

How to Flush and Reset the DNS Cache in Windows 10

In this article we’ll talk about different ways on how to windows flush DNS cache and reset it on Windows 10 computer.

DNS stands for Domain Name System. It translates website names into IP addresses which computers can understand. This happens for every website you want to visit. Every time a user visits a website by its hostname, the web browser initiates a request out to the internet, but this request cannot be completed until the site’s name is “converted” into an IP address. Windows comes with an option which stores the specified DNS server address to speed up browsing experience.

Why do you need to Flush and Clear DNS Cache

There are many reasons why you may need to flush your DNS in Windows 10, the most common one being that websites aren’t resolving correctly and it may be an issue with your DNS cache holding an incorrect address. Also, reset DNS cache can be useful after changing the DNS settings on the computer or router, and also in cases when the desired site has changed the IP address to another (after moving the site to another hosting provider), and you still have the old IP in your cache and so the site just does not open.

The described methods in our article of flush DNS cache works in all versions of Windows from Windows XP to Windows 10.

How to see your current windows DNS Cache

To see your current Windows DNS Cache, open a new elevated command prompt instance and type the following command: ipconfig /displaydns

ipconfig displaydns

ipconfig displaydns

The command will produce a very long output or you can redirect command very long output to text file for examination by typing the following command: ipconfig /displaydns > C:\Windows\dns_cache.txt

ipconfig output

ipconfig output

The output can be found on the following path: C:\Windows. Then you can open the dns_cache.txt file created and inspect its entries.

Windows Flush DNS Cache, Method 1 – Windows Command Using ipconfig /flushdns

  1. Hold down the Windows key and press “R” to bring up the Run dialog box.
  2. Type ipconfig /flushdns then press “Enter“.
ipconfig flushdns

ipconfig flushdns

A command box will flash on the screen and the DNS Resolver cache is cleared.

Windows Flush DNS Cache, Method 2 – Command prompt

  1. Click on start menu search and type ‘command’.
  2. From search results right click on Command Prompt (make sure you’re running it as administrator).
  3. Type ipconfig /flushdns and hit enter.

If everything went well, the result should be “Successfully flushed the DNS Resolver Cache“. This means that cleaning the DNS cache was successful.

Windows Flush DNS

Windows Flush DNS

Note: Flush DNS Cache can be done even using Windows PowerShell:

  1. Select the “Start” button, then type “powershell“(make sure you’re running it as administrator).
  2. Select “Windows PowerShell“.
  3. Type Clear-DnsClientCache, then press “Enter“.
Windows flush dns command powershell

Windows flush dns command powershell

Windows Flush DNS Cache, Method 3 – Reset of Winsock settings

Another way is to perform a reset of Winsock settings.

  1. Click on start menu search and type ‘command’.
  2. From search results right click on Command Prompt (make sure you’re running it as administrator).
  3. Type netsh winsock reset and hit enter.
flush dns windows 10 - netsh winsock reset

flush dns windows 10 – netsh winsock reset

Also you can restart the DNS client service to clear the cache. You can perform this task from services.msc console. Right click on DNS Client service and select Restart option.

Reset dns - DNS Client Service

Reset dns – DNS Client Service

Troubleshooting Windows Flush DNS Cache

If after running the command ipconfig /flushdns you receive an error Could not flush the DNS Resolver Cache: Function failed during execution, most likely the system service “DNS client” is disabled.

ipconfig flushdns error

ipconfig flushdns error

Run this service or restart it (in case of errors when the service is in running state).

The post Windows Flush DNS in Windows 10 appeared first on Get IT Solutions.



This post first appeared on Get It Solutions, please read the originial post: here

Share the post

Windows Flush DNS in Windows 10

×

Subscribe to Get It Solutions

Get updates delivered right to your inbox!

Thank you for your subscription

×