How to clear the local DNS cache for Windows

Source: Internet
Author: User

When your site migrates the server, you need to make changes to the IP that the domain name points to, so when you visit the Web site you need to clear the local DNS cache information, then how to clear?

First, we should understand the principle of clearing the DNS cache information: When the computer access to the domain name is not every visit to the DNS server to seek help, in general, when the resolution is completed once, the resolution entry will be saved in the computer's DNS cache list, if the DNS resolution changes change, Because the DNS cache list information does not change, when the computer accesses the domain name, the DNS server is still not connected to obtain the most recent parsing information, which is resolved according to the cache correspondence that is saved on its own computer, and DNS resolution failures occur. At this point we should resolve the failure by clearing the DNS cache command. In general, there are two simple ways to clear the DNS cache information:

The first type:

1. Enter command-line mode with start-to-run, input cmd.

2. In the command-line mode we can see that there is a parameter named/flushdns in ipconfig/?, which is the command to clear the DNS cache information.

3. Execute the IPCONFIG/FLUSHDNS command when the "successfully flushed the DNS resolver cache" prompt indicates that the current computer's cache information has been successfully purged.

4. The next time we access the domain name, we will go to the DNS server to obtain the latest resolved address, and will not appear because the previous cache caused parsing error failure.

The second type:

1. Access to Control Panel, management tools, services

2. Restart the DNS client and DHCP client two services.

Through the above two simple methods, generally we can successfully clear the local DNS cache, if a method is unsuccessful, you can try it both ways ~

Transferred from: http://www.cnblogs.com/lexus/archive/2010/08/28/1810689.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.