Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if DNS parsing fails?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "what to do if DNS parsing fails". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, use nslookup to determine whether it is really a DNS parsing fault

1. Confirm that the system is an operating system of windows 2000 or windows xp or above, and then enter into command line mode after "start"-"run"-"enter CMD".

2. Enter the nslookup command and enter to enter the DNS parsing query interface.

3. The DNS server address currently used by the system will be displayed in the command line window, such as the Dns server IP of the editor is 118.123.8.174.

4. Next, enter the domain name for the site that you cannot access. We will receive a message from DNS request timed out,timeout was 2 seconds. This shows that there is indeed a DNS parsing failure on our computer. If the DNS resolution is normal, it will be fed back to the correct IP address.

Second, query whether the Dns server is working properly

1. Confirm that your system is an operating system of windows 2000 or windows xp or above, and then enter into command line mode after "start"-"run"-"enter CMD".

2. Enter the ipconfig / all command to query the network parameters.

3. In the ipconfig / all display message, we can see a place where DNS SERVERS is written. This is our DNS server address. For example, the editor is 118.123.8.174. From this address, we can see that it is a public network address. If there is a resolution error in using the public network DNS, we can change the address of another Dns server to solve the problem.

4. If your company's internal network address is displayed at the DNS server, then your company's DNS resolution work is assigned to the company's internal DNS server. At this time, we need to check the DNS server and perform nslookup operation on the DNS server to see if it can be parsed properly. Resolve the DNS service failure on the Dns server, and generally the problem can also be solved.

3. Clear DNS cache information

When the computer accesses the domain name, it is not always necessary to ask the DNS server for help. Generally speaking, after the resolution work is completed, the resolution entry will be saved in the computer's DNS cache list. If the DNS resolution changes, because the DNS cache list information has not changed, when the computer accesses the domain name, it will still not connect to the DNS server to get the latest resolution information. It will be parsed according to the cache correspondence saved on your computer, so that a DNS parsing failure will occur. This can be solved by clearing the cache command.

1. Enter the command line mode after "start"-"run"-"enter CMD".

2. Execute the ipconfig/flushdns command, and when the prompt "successfully flushed the dns resolver cache" appears, it indicates that the cache information of the current computer has been cleared successfully.

3. When you visit the domain name next time, you will go to the DNS server provider to get the latest resolution address, and there will be no resolution failure caused by one-bit cache.

Fourth, modify the hosts file

To modify the hosts method is to modify the DNS parsing correspondence in the hosts file, so as to achieve the correct parsing purpose. Because the local computer will first view the host file on the local system when accessing a domain name, the resolution relationship in the hosts file takes precedence over the resolution relationship on the DNS server. This can be done by adding a parsing entry to the hosts file.

1. Find the hosts file. The file path: C:\ windows\ system32\ drivers\ etc directory can find the hosts file.

2. Double-click the hosts file and select notepad to open it.

3. Add the entries you want to parse DNS to the hosts file in the format: ip address domain name such as 192.168.1.1

4. After setting up and saving it, you can access it.

This is the end of the content of "what to do if DNS parsing fails". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report