DNS Iterative Recursive

What is an iterative query in DNS?

The query that has been sent to the DNS server from a Client is called iterative query. (i.e., iterative query is nothing but gives the answer for my question, don’t ask to contact that person or this person or don’t say something else. Simply just answer to my question.

In addition, the client itself can attempt to contact additional DNS servers to resolve a name. When a client does so, it uses separate and additional nonrecursive queries based on referral answers from servers. This process is known as iteration.

What is Recursive query?

A DNS server can also query or contact other DNS servers on behalf of the requesting client to fully resolve the name, then send an answer back to the client. This process is known as recursion.

The following figure shows an overview of the complete DNS query process.

How a DNS query works