Internet connection problem? DNS cache damage? Facing DNS problems or problems? Maybe you need to refresh the Windows DNS cache. If your computer finds it difficult to access a website or server, the problem may be caused by local DNS cache corruption. Sometimes, bad results may be cached due to DNS cache poisoning and deception, so it needs to be cleared from the cache to allow your Windows computer to communicate with the host correctly.
Usually, there are three types of caches in Windows that can be easily refreshed:
Memory cache
DNS cache
Thumbnail cache
Clearing the memory cache can free up some system memory, while clearing the thumbnail cache can free up hard disk space. Clearing the DNS cache can solve your Internet connection problems. Here’s how to refresh the DNS cache in Windows 11, Windows 10, Windows 8 or Windows 7.
Refresh the DNS cache in Windows 11/10
To refresh the DNS cache in Windows 11/10, you need to:
Open the management command prompt window as an administrator
Enter ipconfig /flushdns and press Enter
You should see – Windows IP configuration. Successfully refresh the DNS resolver cache
Exit the command
Your DNS cache should have been reset.
How to use PowerShell to refresh the DNS cache
To refresh the DNS cache with PowerShell, please run PowerShell as an administrator and execute the following commands:
Clear-DnsClientCache
How to automatically refresh the DNS cache every few hours?
Before making any changes, please back up your registry.
Open the run prompt, enter regedit, and then press Enter.
This will open the registry editor.
Navigation:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNSCache\Parameters
Right-click on the blank area, and then create a new DWORD.
Set the name to MaxCacheTtl and set the value (in seconds). The default value is 86400 seconds, which is one day.
Repeat the same operation to create another DWORD, named MaxNegativeCacheTtl, and the value is 5
This will ensure that the local DNS cache is refreshed every few hours.
How to display DNS cache
If you want to confirm whether the DNS cache has been cleared, you can type the following command and press Enter:
Ipconfig /displaydns
This will display the DNS cache entry (if any).
How to turn off or turn on DNS cache
To turn off the DNS cache of a specific session, enter net stop dnscache and press Enter.
To open the DNS cache, please enter net start dnscache and press Enter.
Of course, when you restart the computer, the DNC cache will be turned on anyway.
Note: This is a batch file used to release TCP/IP, refresh DNS, reset Winsock, and reset proxy at one time.
How to disable DNS cache
If for some reason you want to disable the DNS cache, please type services in Start Search and press Enter to open the Service Manager. Find the DNS client service here.
DNS client service (dnscache) caches the domain name system (DNS) name and registers the full computer name of the computer. If the service stops, the DNS name will continue to be resolved. However, the results of the DNS name query will not be cached, and the name of the computer will not be registered. If the service is disabled, any service that explicitly depends on the service will not be able to start.
Double-click it to open its property box. Here, its startup type is changed from manual to disabled. If you disable the DNS client service, it may take longer to find the DNS.
How to refresh the DNS record of the browser
In order to improve the search speed, the browser stores the DNS cache. Since each browser stores detailed information, it is necessary to clear them separately. Please follow the steps below.
Step 1: Start Google Chrome or Edge, enter the following address, and then press Enter.
Chrome://net-internals/#dns
Edge://net-internals/#dns
This will take you to the internal network page of Chrome or Edge.
Step 2: Click the “Clear Host Cache” button.
发表回复