How to clean the DNS resolution cache? Full summary of common cleaning methods

Time: 2026-09-29
Editor: USTAT.COM

DNS Resolution Cache

in the process of daily use of the network, many people have encountered the situation that the domain name is correct but cannot open the webpage, the webpage jumps to the wrong site, which is mostly related to the abnormality of DNS resolution cache. DNS resolution cache is the corresponding record of the domain name temporarily stored and the Internet Protocol Address in order to improve the speed of network access, but when the cache expires and is contaminated, it will cause network problems. This article will explain in detail how different devices clean up the DNS resolution cache, and related precautions to help you quickly restore the normal network state.

Why clean up the DNS resolution cache?

before understanding the cleaning method, we need to clarify the necessity of cleaning the DNS resolution cache in order to operate more specifically.

1 Resolve network access anomalies

when the DNS resolution cache records expired, or contaminated by malicious programs, the system will access the network according to the wrong cache records, there will be domain name can not be resolved, web page jump error, timely cleaning DNS resolution cache can allow the system to regain the correct domain name correspondence, restore normal network access.

2, improve network access speed

some old DNS resolution cache records may point to servers that are far away, resulting in slower page loading. After cleaning the DNS resolution cache, the system will re-query and obtain the Internet Protocol Address of the server that is closer and faster, thus improving the overall network access smoothness.

How do Windows devices clean up the DNS resolution cache?

Windows is currently the most widely used desktop operating system, clean DNS resolution cache operation is simple and easy to use, there are two common methods.

1 Clean up

via command prompt

press the Win + R key combination to open the run window, enter cmd and press Enter to start the command prompt, enter ipconfig /flushdns in the command line and press Enter, and wait for the system prompt "Successfully refresh the DNS resolution cache" to complete the operation. The whole process only takes a few seconds.

2 Clean up

through the settings panel

open the Windows Settings panel, go to Network and Internet, Advanced Network Settings, More Network Adapter Options, right-click the currently used network connection to select properties, double-click Internet Protocol Version 4, click the "Advanced" button below, switch to the DNS tab in the pop-up window, and click the "Clear Cache" button to complete the cleaning of the DNS resolution cache.

How do Mac devices clean up the DNS resolution cache?

Mac the operating logic of the system and Windows are different, the method of cleaning the DNS resolution cache is also different, and the corresponding operation needs to be selected according to the system version.

1, Ventura and above

open the end point application in the startup station, enter the sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder command, press Enter and enter the Mac user password, and enter again to complete the cleaning of the DNS resolution cache. Note that end point will not display characters when entering the password, and enter it normally.

2, Monterey and below

for Monterey, Big Sur and other older versions of Mac systems, just enter the sudo killall -HUP mDNSResponder command in the end point, press Enter and enter the user password, you can complete the DNS resolution cache cleaning, the operation is relatively more concise.

4, how to clean the mobile device DNS resolution cache?

in addition to desktop devices, mobile devices such as mobile phones and tablets will also store DNS resolution caches, which also need to be cleaned up when network abnormalities occur.

1, Android device cleaning method

Android devices do not have a unified cleaning entrance, most models can find the "network settings" or "browser" application through the application management in the settings, select the storage option and click "Clear Cache" to clean the DNS resolution cache; some customized systems also support DNS cache cleaning button directly found in the network settings, directly click to complete the operation.

2, iOS equipment cleaning method

iOS the system does not have a separate DNS resolution cache cleaning option, users can force the system to refresh the network configuration by turning on and off the airplane mode, and indirectly complete the cleaning of the DNS resolution cache; you can also find the currently connected Wi-Fi in the settings, click "Ignore this network" and reconnect, which can also achieve the effect of cleaning the DNS resolution cache.

sum up, DNS resolution cache is an important mechanism to improve network access efficiency, but when there is an abnormality, it will cause a variety of network problems. We can clean up the DNS resolution cache in a targeted manner according to the operation methods of different platforms such as Windows, Mac, and mobile devices to solve problems such as domain name resolution errors and slow web page loading. In daily use, it is recommended to clean the DNS resolution cache regularly, or you can try this operation first when encountering network abnormalities to quickly restore the normal network state.