How to refresh the local DNS Cache

Source: Internet
Author: User

I often ask if domain name resolution does not take effect immediately. Why is it still the original one? The answer is that there is a resolution cache in the local DNS. After the computer first accesses it, it will be cached within a certain period of time.
When accessing this domain name, the computer can directly know the IP address by searching for the local DNS cache, instead of performing domain name resolution, which improves the efficiency. This is the DNS cache, after the domain name is changed
However, the DNS server has been updated, but the local DNS Cache still exists, resulting in an old IP address. You can solve this problem using the following method:

Method 1:

First, enter the command prompt (start -- run -- cmd );

Run the command ipconfig/displaydns to check the DNS information cached on the local machine, and then enter the following command

Ipconfig/flushdns

At this time, the DNS Cache Information of the local machine has been cleared. We can enter the command for the first time to see it,

Ipconfig/displaydns

Method 2:

Enable the NIC directly.

Learn how to view domain name NS resolution and find a simple command to solve it. Of course, first of all
Make sure that your network is normal.

Procedure:

Start -- run, Enter cmd, and then type the following command, as shown in figure

NSLookup-q = NS Baidu.com

Or

NSLookup-Qt = NS Baidu.com

Note: Enter the root domain name instead of the second-level domain name for the domain name.

The following shows how to view Baidu's domain name DNS information:

Baidu.com nameserver =
Ns3.baidu.com
Baidu.com nameserver = ns2.baidu.com
Baidu.com nameserver = ns4.baidu.com

Posted onSitu zhengmei reading (...) Comment (...) EDIT favorites

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.