Troubleshooting DNS Name Resolution errors

Source: Internet
Author: User
Tags command line parse error dns troubleshooting nslookup nslookup command

In the actual application process may encounter the problem of DNS parsing errors, that is, when we access a domain name can not be completed to resolve the work of the IP address, and the direct input of the Web site IP can be normal access, this is because of DNS resolution failure caused. The probability of this phenomenon is relatively large, so this article will be from the beginning of zero to teach readers some basic troubleshooting DNS troubleshooting methods.

First, what is a DNS resolution failure?
Generally speaking, as we visit the www.ccidnet.com, these addresses are called domain names, and it is well known that any host in the network is the IP address to identify, that is, only know the site's IP address to be able to successfully implement access operations.

However, because the IP address information is not very good memory, so the name of the domain name in the network, in the visit we need to enter this good memory of the domain name, the network will exist automatically to resolve the corresponding domain name to the IP address of the server, this is the DNS server. A machine capable of implementing DNS resolution can be either its own computer or a computer in the network, however, when DNS resolution errors, such as the resolution of a domain name to a wrong IP address, or do not know what the corresponding IP address of a domain name, we can not access the corresponding site through the domain name , this is the DNS resolution failure.

A DNS resolution failure is the biggest symptom of access to the site's corresponding IP address is not a problem, but access to his domain name will be an error.

Second, how to troubleshoot DNS resolution failure:

When our computer has a DNS resolution problem, do not worry, the solution is simple.

(1) Using Nslookup to determine whether the DNS resolution is really a fault:

To fully determine whether the DNS resolution of the fault will need to be through the system with the Nslookup to solve.

Step one: Verify that your system is operating on Windows 2000 and Windows XP, and then enter command line mode by "Start-> run-> input cmd".

The second step: Enter the nslookup command and return to enter the DNS resolution query interface.

Step three: The Command Line window displays the DNS server address used by the current system, for example, the author's DNS server IP is 202.106.0.20.

Fourth step: Next Enter the site you can not access the corresponding domain name. For example, the author input www.ccidnet.com, if not access, then DNS resolution should not be normal. We will receive a message from DNS request timed Out,timeout was 2 seconds. This means that our computer does have a DNS resolution problem.

Tip: If DNS parsing is normal, feedback back to the correct IP address, such as the author with www.ccidnet.com this address for query resolution, will get name:ciidnet.com,addresses:61.135.133.103, 61.135.133.104 of information.

(2) Query the DNS server is working properly:

At this point we will look at the number of DNS addresses used by our computer and inquire about his operation.

Step one: Verify that your system is operating on Windows 2000 and Windows XP, and then enter command line mode by "Start-> run-> input cmd".

Step Two: Enter the Ipconfig/all command to query the network parameters.

Step three: In the Ipconfig/all display information we can see a place to write DNS SERVERS, this is our DNS server address. For example, the author is 202.106.0.20 and 202.106.46.151. From this address can be seen as an extranet address, if the use of extranet DNS resolution error, we can replace a different DNS server address to solve the problem.

Fourth step: If the DNS server is displayed in the company's internal network address, so that your company's DNS resolution work is to the company's internal DNS server to complete, when we need to check this DNS server, Perform a nslookup operation on the DNS server to see if it resolves correctly. Resolves DNS service failures on DNS servers, and generally solves problems.

(3) To clear the DNS caching information method:

When a computer has access to a domain name, not every access requires help from the DNS server, in general, when the resolution is completed once, the resolution entry is 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 still does not connect to the DNS server to obtain the latest resolution information, and resolves it based on the cached correspondence that is saved on its own computer, which can cause a DNS resolution failure. At this point we should resolve the failure by clearing the DNS cache commands.

The first step: Through the "Start-> run-> input cmd" into the command line mode.

Step two: In the command line mode we can see a parameter named/flushdns in ipconfig/?, which is the command to clear the DNS cache information.

Step three: Execute the IPCONFIG/FLUSHDNS command, indicating that the cached information for the current computer has been successfully purged when the "successfully flushed the DNS resolver cache" prompt appears.

Fourth step: The next time we visit the domain name, we will go to the DNS server to obtain the most recent resolution address, no longer because the previous cache caused a parse error failure.

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.