Instructions to clear DNS Cache with CMD command on Windows
In today's article, we will learn about how to clear the DNS Cache on Windows with the very simple CMD command.
I. Learn about DNS Cache
1. What is cache?
Cache is a cache that plays the role of storing processed data, making data access faster because it does not need to be compiled/processed again.
2. What is DNS?
DNS (Domain Name System) is a system of resolving domain names to IP addresses. With DNS, it's easier to access a website with an easy-to-remember name than entering a complicated and difficult-to-remember IP address into the browser.
For example: Facebook's IP address is 69.63.176.13, then instead of entering the above address, we type the address facebook.com into the browser, it will be faster and more convenient.
3. What is DNS cache?
Combined with the two terms above, Cache DNS can be understood as a file system that is stored on a user's personal computer when accessing a website for the first time. The browser will access the destination DNS server or the nearest DNS server and look up the IP address for the website to visit. From there, the corresponding IP address for the website will be saved on the user's computer for future visits without having to manipulate the query as before. This will help increase the page load time since the data is already pre-loaded in the user's machine.
4. Clear DNS Cache for what?
When a website moves to a server or changes its IP address, the chances of you getting a DNS error when accessing that website are quite high. Not only that, if you often visit websites with poor security system, you can also cause DNS cache system to fail. Then you will have connection problems. And that's when you need to clear the DNS cache to solve the problem.
II. Clear DNS Cache with CMD command on Windows
1. Simple DNS Cache Clearing with FlushDNS Command in CMD
Step 1: You press the Windows + R key combination to open the Run tool. Next, enter the cmd keyword and press Ctrl + Shift + Enter to open Command Prompt with administrative rights.
If there is a message like the picture, please click Yes.
Step 2: Type the following command and press Enter.
ipconfig /flushdns
After the message Successfully… appears successful!
2. Clear the DNS Cache with the command in PowerShell
Step 1: You press the Windows + R key combination to open the Run dialog box. Next, enter the keyword powershell => press Ctrl + Shift + Enter to open PowerShell with administrative rights. If a message appears on the screen, click Yes.
Step 2: Next, enter the following command and press Enter.
Clear-DnsClientCache
The command will clear the DNS cache and no error message will appear behind is successful.
3. Some commands to clear other DNS cache and renew another IP address
If you follow the above steps and the DNS cache has not been cleared, you can try the following commands in Command Prompt (cmd) with administrative rights:
- ipconfig /displaydns: Check current DNS records
- ipconfig /release: Exit the current IP address settings
- ipconfig /renew: Reset new IP address settings
With the instructions in the article, you can quickly clear the DNS Cache in CMD on Windows. Good luck!
You should read it
- How to use Cleaner for PC Pro to delete cache, Windows junk files automatically
- What is cache? How to clear Cache in Windows 10
- How to clear system and Internet cache on Mac
- How to clear cache in Google Drive and Docs
- How to Clear the Cache on a Mac
- Instructions on how to clear cache on Kodi
- Instructions on how to clear the browser cache
- How to clear cache and delete different Android application data?
- How to clear the Cache in Windows 8?
- How to clear cache on iPhone
- Clear the Dropbox cache Windows and Linux to free up memory space
- Instructions for deleting Dropbox's cache on iPhone and iPad
Maybe you are interested
How to change DNS for Ubuntu, Linux
How to change DNS in Windows 10, increase network speed, access blocked websites
What is DNS, basic knowledge about DNS
How to change DNS on Windows 11/10/8/7 and macOS to surf the web and speed up the network
How to change DNS on Windows 11, surf the web, watch movies faster
How to change DNS on Windows 11 to increase Internet speed