How to refresh the local DNS Cache and how to refresh the DNS Cache

Source: Internet
Author: User
Tags nslookup

How to refresh the local DNS Cache and how to refresh the DNS Cache

Http://www.cnblogs.com/rubylouvre/archive/2012/08/31/2665859.html

 

 

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 accesses the domain name for the first time, it will be cached within a certain period of time. When the computer accesses the domain name for the next time, it will find the local DNS cache, you can directly know the IP address, instead of performing domain name resolution, which improves the efficiency. This is the DNS cache, and after the domain name is changed, although the DNS server has been updated, there is still a local DNS cache, resulting in an old IP address. You can solve this problem through the following methods:

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 to view the DNS resolution of the domain name and find a simple command to solve the problem. Of course, you must first confirm that your network is normal.
Steps:
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

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.