Recursive query and iterative query of DNS

Source: Internet
Author: User

After studying for a while, I was confused for a while, and finally understood. The simplest way to understand it is as follows:

Recursion: The method between the client and DNS. The client entrusts its DNS to query the ip address.

Iteration: The method between DNS servers. After the client uses recursion to communicate with DNS, DNS will search for the client. There may be many ways to do this. The common method is to directly query the client by root. If no result is found, the client will perform the latest query. For example, first go to root to find. com, then find sina.com from. com, step by step.

Two real DNS query modes
There are two inquiry principles: Recursive and Interactive. The former is asked by the DNS proxy by Intera.
Ctive method, which is directly used for Interactive inquiry by the local machine. As shown in the preceding example, when we query the name
Both query modes are interactive.
Recursive (Recursive): the query mode from the DNS client to the DNS Server. This mode sends the query packets to be queried
Wait for the correct response with the correct name. In this way, only the returned packets are correctly responded or cannot be found.
Message.
Interactive: the query mode between DNS servers, which is sent by the Client or DNS Server.
Send packets out and ask, the response data is not necessarily the last correct name location, but it is not an error
Message, he returns to tell you the closest IP address location, and then goes to the nearest IP address to find the name to be resolved, repeated actions
Until the correct position is found.

Learn DNS together

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.