Recursive and Iterative Queries

Поділитися
Вставка
  • Опубліковано 4 сер 2024
  • DNS has two query types called recursive and iterative. Check out itfreetraining.com for more of our always free training videos. This video looks at how these queries are used to resolve DNS requests and how you would configure them in your organization to get the results that you require.
    Download the PDF handout ITFreeTraining.com/handouts/dn...
    Recursive and Iterative Queries
    Recursive: This query is normally sent from a device on the network to a DNS server. This includes servers which also, when they require DNS names to be resolved, will send a recursive query to a DNS server. When a DNS server receives a recursive query, it will take responsibility to find an answer, even if this answer is, "there is no DNS name registered for that name". If the DNS server is configured to forward requests, it will simply forward the request to another DNS server to be resolved. If forwarding is not configured, the DNS server will contact other DNS servers. The first DNS server that will be contacted will be a root hints server assuming information is not available in the DNS server cache that may help resolve the request. This request will be an iterative query which is explained in more detail below. In this example, the root hints server will respond back with the IP Address of the .com servers. The DNS server will be able to send an iterative query to this server asking for the DNS server that can answer DNS requests for ITFreeTraining.com. Once the DNS server has the IP Address for one of these DNS servers, it can contact it and resolve the name ITFreeTraining.com
    Iterative: An Iterative query is a DNS request which states, "Give me the answer or give me any information that will help me find the answer". If the DNS server has no information that will assist, it will respond back stating that and will not attempt to contact other DNS servers to attempt to find out the answer. Root hints servers are configured to only respond to iterative queries. As the root hints servers are at the top of the DNS hierarchy, if these were to become overloaded with recursive queries, this would affect their ability to answer other DNS queries and thus this is why recursive queries are switched off on the root hints servers.
    Summary
    Recursion: Sent by clients on the network to DNS Servers. The DNS server that is configured to accept recursive queries, which is the default, will contact other DNS servers as required to find out the result.
    Iterative: Will respond back from its cache or zone files. It will not attempt to contact other DNS servers to find out the answer. If it knows another DNS server that may be able to assist with the name resolution it will return the IP Address of that DNS server.
    References
    "Domain Name System" en.wikipedia.org/wiki/Domain_N...
    "MCTS 70-640 Configuring Windows Server 2008 Active Directory Second edition" pg 455
    "Installing and Configuring Windows Server 2012 Exam Ref 70-410" pg 230

КОМЕНТАРІ • 78

  • @shimmeringreflection
    @shimmeringreflection 3 роки тому +5

    This is a superb explanation of how DNS resolution and iteration work. Bravo 👏

  • @seanb9436
    @seanb9436 3 роки тому +1

    I watched this years ago, and I found it to re-watch it again in 2021 to make sure I had it right. Thanks * 2!

  • @PhilShnider
    @PhilShnider 7 років тому +3

    Thank you for knowledge share, keep it coming. as long as people use networks and ADDS you'll be remembered

  • @graceappiah2270
    @graceappiah2270 5 років тому

    U don't know how much you helped me.

  • @ssss46871
    @ssss46871 8 років тому +1

    very useful videos for the students....thank you so much sir

  • @M.BilalAhmad
    @M.BilalAhmad 8 років тому +2

    amazing video ..... Got the concept of Iterative and recursive queries ..... Thanks :)

    • @itfreetraining
      @itfreetraining  8 років тому +1

      +muhammad bilal ahmad You're welcome. We're very happy to hear the videos were useful to you.

  • @talk2anuj
    @talk2anuj 9 років тому

    Awesome explanation. Thanks !!

    • @itfreetraining
      @itfreetraining  9 років тому

      Thank you, we're glad you found the video helpful

  • @AhmedMohammed-ju1vm
    @AhmedMohammed-ju1vm 10 років тому +1

    Thank You so much !!! It is so good !

  • @cha1873a
    @cha1873a 7 років тому

    Very good video. But can you lease clarify this on the time line 1:10 on this video you mentioned each DNS server will be contacted if the name cannot be resolved. I thought the DNS query only goes to the secondary DNS server if the first server is not available.
    Please clarify

  • @qaismomand8015
    @qaismomand8015 3 роки тому

    Billon of thanks

  • @laviusnkatekomotileng6582
    @laviusnkatekomotileng6582 8 років тому +2

    Wow, this is very helpful thank you.

  • @TheSpiralnotizblock
    @TheSpiralnotizblock 2 роки тому

    Perfect video, thanks!

  • @shek23838827
    @shek23838827 4 роки тому

    thanks a lot

  • @CookieDoughSys
    @CookieDoughSys Рік тому +1

    Helping me get my degree. You go man

  • @abhijeetnegi6484
    @abhijeetnegi6484 3 роки тому

    always thumbs up for ur explanation

  • @user-do5dt1fp7u
    @user-do5dt1fp7u 7 місяців тому

    great work buddy

  • @charusaini5423
    @charusaini5423 7 років тому

    Great video. easily understood

  • @TheVillageShow
    @TheVillageShow 5 років тому

    Good explanation. Thank you

  • @rfrancoi
    @rfrancoi 8 років тому +1

    Excellent video Sir.

  • @anuj_rana
    @anuj_rana 10 років тому

    Good video and informative too.

  • @istvanszabo6875
    @istvanszabo6875 7 років тому

    very professional, good job sir

  • @Nsadheo
    @Nsadheo 9 років тому

    thanks again :-)

  • @Trumpo1441
    @Trumpo1441 6 років тому

    2018!! thanks for this video

  • @Original.Product
    @Original.Product 10 років тому +1

    INFORMATIVE...NICE...:-)

  • @vineejay76
    @vineejay76 5 років тому

    is this process called round robin ?

  • @TiagoBigodeTI
    @TiagoBigodeTI 9 років тому

    Parabéns!

  • @rennyboyjumawan260
    @rennyboyjumawan260 8 років тому

    where does the resolving name server takes place. i didn't see it.

    • @itfreetraining
      @itfreetraining  8 років тому

      +rennyboy jumawan I am not sure what you mean. Can you elaborate.

  • @Mr.AIFella
    @Mr.AIFella 5 років тому

    Thanks.

  • @yoganandts7868
    @yoganandts7868 8 років тому +1

    Hello Sir,What is the difference between the zone file and the cache of the DNS server? If there is a location for cache ,please do let me know the path of it .Thank you

    • @itfreetraining
      @itfreetraining  8 років тому +1

      +Yoganand T S Well, a DNS zone file resides on a DNS server and contains the mappings between domain names, IP address, A & AAA records, CNAMES, MX records and more. This is opposed to the copy that was downloaded to the local workstations which is what I would assume you mean by cache. There is no real location for the DNS cache as it is stored within the TCP/IP components of the computer versus being an actual file. To view the DNS cache, you would open a command prompt and type "ipconfig /displaydns" and to clear the cache you would type "ipconfig /flushdns".
      Does this answer your question?

    • @yoganandts7868
      @yoganandts7868 8 років тому +1

      Yes Sir. It answers my question clearly. Thank you so much for the explanation !
      I was misunderstood that the cache will be stored on the DNS server.

    • @itfreetraining
      @itfreetraining  8 років тому

      You're are most welcome. We are so glad that we were able to answer you question. Please feel free to ask any others you may have!

  • @anilnair5978
    @anilnair5978 5 років тому +1

    in both the case its looking for other DNS server to resolve can you please explain this little bit of confused

  • @SubhenduBhattacharyyaBlog
    @SubhenduBhattacharyyaBlog 8 років тому

    Great !!

    • @itfreetraining
      @itfreetraining  8 років тому

      +Subhendu Bhattacharyya Thanks! We're glad you think so!

    • @SubhenduBhattacharyyaBlog
      @SubhenduBhattacharyyaBlog 8 років тому

      +itfreetraining Most welcome !! Not only this video , the complete series is great !! Even better then cbt nuggets.

    • @itfreetraining
      @itfreetraining  8 років тому

      We're so glad to hear that! We really appreciate the feedback justifying our free product over a paid product like CBT nuggets.

  • @pettychi
    @pettychi 10 років тому

    I love you

    • @BilalDaya1
      @BilalDaya1 10 років тому

      Petra? No way...kel hal2ad desperate?

  • @romanticKSA
    @romanticKSA 10 років тому +1

    If recursive disabled, then how DNS will respond to the queries from clients!

    • @theraque1
      @theraque1 6 років тому

      They will either respond to the entries that that they are authoritative for only or respond back with an NXDomain informing the client that the domain requested is not available. So if your use case is to lock down an environment and have informed users that will only ever expect DNS answers for one domain, that's when you disable recursion. If your use case is not this (most people's use case isn't) then you enable (or leave enabled) recursion.

  • @Bring_MeSunshine
    @Bring_MeSunshine 6 років тому

    Hate to complain, because on the whole the videos you produce are excellent, but, in watching this DNS series, I've noted there are segments of audio - such as in this one - where the audio quality drops; sounds like a really narrow, telephone bandwidth and you struggle to hear it.

    • @itfreetraining
      @itfreetraining  6 років тому

      We will investigate that issue, thanks for bringing it to our attention!

  • @YusufSaidCANBAZ
    @YusufSaidCANBAZ 8 років тому

    does not show the flow of recursive query just says. It is like
    upload.wikimedia.org/wikibooks/en/b/ba/Recursive.jpg

  • @Mr.AIFella
    @Mr.AIFella 5 років тому

    Like + Subscribed to your channel.

  • @ba.z2606
    @ba.z2606 2 роки тому

    I think your summary is wrong. Iterative will contact other dns servers. and recursive wont

    • @itfreetraining
      @itfreetraining  2 роки тому

      It is a bit confusing. So your computer may do a number of iterative queries to different DNS servers to get a result, but essentially a direct connection. Recursive will may involved a number of DNS servers to get the result. And may do this process with a number of different DNS servers.

  • @playerone2424
    @playerone2424 9 років тому

    Shocking audio quality.

    • @itfreetraining
      @itfreetraining  9 років тому

      What are you referring to. Sound fine on this computer.

    • @tree8103
      @tree8103 5 років тому

      @@itfreetraining are you iRobot

  • @danielmurray4314
    @danielmurray4314 5 років тому

    1.25x speed. Trust me

  • @graceappiah2270
    @graceappiah2270 5 років тому

    U don't know how much you helped me.

  • @gadgetproblemnoproblem7613
    @gadgetproblemnoproblem7613 8 років тому

    Awesome explanation. Thanks !!

    • @itfreetraining
      @itfreetraining  8 років тому

      +Gadgetproblem Noproblem We're glad you are enjoying the videos and they are helpful for you