+5 votes
28 views
Clear DNS Cache Windows 10 CMD or PowerShell

in Windows10 by (376k points)
reopened | 28 views

1 Answer

+3 votes
Best answer

1. Clear DNS Cache Windows 10 CMD
2. Clear DNS Cache Windows 10 PowerShell

As we navigate the websites, these little by little occupy space on the disk with the DNS cache , this cache integrates data from the site such as its IP address, remote servers and other information necessary to access that site, since the cache is DNS present, the opening of the website will be much faster, but if the destination site changes IP, servers or name, the DNS cache Windows 10 will have a conflict when accessing that site and that is why in In this case it is best to clear the DNS cache, TechnoWikis will explain how to clear this DNS cache in two different ways..

 

With the DNS cache we are storing the IP addresses where we have been browsing and what is being saved. Sometimes we can have DNS resolution problems due to that stored information, throwing errors such as 404s and not finding a solution even with a CDN working correctly. Sometimes something as simple as clearing the DNS cache can solve temporary computer errors.

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 


1. Clear DNS Cache Windows 10 CMD

 

Step 1

We access the command prompt as administrators :

 

image

 

 

Step 2

In the console we list the DNS with the command:
 ipconfig / displaydns 
image

 

 

Step 3

We delete the DNS:
 ipconfig / flushdns 
image

 

Step 4

Again list the DNS:
 ipconfig / displaydns 
image

 

 

Note
some DNS records are required for system-specific tasks, so they will not be deleted.

 


2. Clear DNS Cache Windows 10 PowerShell

 

Step 1

Access PowerShell as administrator :

 

image

 

 

Step 2

In the PowerShell console we list the DNS:
 Get-DnsClientCache 
image

 

 

Step 3

We delete the DNS cache:
 Clear-DnsClientCache 
image

 

 

Step 4

We list the DNS again:
 Get-DnsClientCache 
image

 

This has been the process to clear DNS cache in Windows 10 using CMD or PowerShell console..

 


by (2.3m points)

Related questions

+3 votes
1 answer
+5 votes
1 answer
asked Sep 3, 2020 in Windows10 by backtothefuture (376k points) | 142 views
+3 votes
1 answer
asked Oct 1, 2020 in Windows10 by backtothefuture (376k points) | 145 views
+3 votes
1 answer
asked Jul 27, 2020 in Windows10 by backtothefuture (376k points) | 141 views
+4 votes
1 answer
asked Feb 25 in Windows10 by backtothefuture (376k points) | 63 views
7,211 questions
7,309 answers
333 comments
2 users