DESKTOP

Windows Server 2008 : Domain Name System and IPv6 - Understanding DNS Queries

2/11/2011 9:14:54 AM
The primary function of DNS is to provide name resolution for requesting clients, so the query mechanism is subsequently one of the most important elements in the system. Two types of queries are commonly made to a DNS database: recursive and iterative.

Performing Recursive Queries

Recursive queries are most often performed by resolvers, or clients, that need a specific name resolved by a DNS server. Recursive queries are also accomplished by a DNS server if forwarders are configured to be used on a particular name server. A recursive query essentially asks whether a particular record can be resolved by a particular name server. The response to a recursive query is either negative or positive. A common recursive query scenario is illustrated in Figure 1.

Figure 1. Recursive and iterative queries.

Performing Iterative Queries

Iterative queries ask a DNS server to either resolve the query or make a best-guess referral to a DNS server that might contain more accurate information about where the query can be resolved. Another iterative query is then performed to the referred server and so on until a result, positive or negative, is obtained.

In the example shown in Figure 10.11, Client1 in CompanyABC opens a web browser and attempts to browse to the website for www.microsoft.com. A recursive query is initiated to the default name server; in this case, Server1 is contacted. Because Server1 is authoritative only for the companyabc.com namespace, and no entries exist for microsoft.com, the query is sent to an “upstream” DNS server that is listed in the root hints of the DNS server. That server, Server2, is not authoritative for microsoft.com but sends a referral back to Server1 for Server3, which is a name server for the .com namespace. Server3 knows that Server4 handles name-resolution requests for microsoft.com and sends that information back to Server1. A final iterative query is then sent from Server1 to Server4, and Server4 successfully resolves www to the proper IP address. Server1, with this information in hand, returns Client1’s original recursive query with the proper IP address and Client1’s browser successfully resolves www.microsoft.com.

This type of functionality lies at the heart of the distributed nature of DNS and allows DNS lookups to function as efficiently as they do.

Other  
  •  Windows Server 2008 : Domain Name System and IPv6 - Performing Zone Transfers
  •  Windows Server 2008 : Domain Name System and IPv6 - Understanding DNS Zones
  •  Windows 7 : Managing Other People’s User Accounts (part 2)
  •  Windows 7 : Managing Other People’s User Accounts (part 1)
  •  Windows Server 2008: Domain Name System and IPv6 - Resource Records
  •  Getting Started with DNS on Windows Server 2008 R2
  •  Windows Server 2008: Domain Name System and IPv6 - Understanding the Need for DNS
  •  Windows 7 : Managing Your User Account
  •  Windows 7 : Troubleshooting Problems with Windows Media Center
  •  Windows 7 : Fine-Tuning the Settings for Windows Media Center
  •  Windows 7 : Installing and Configuring Windows Media Center Using the Wizard
  •  Administrative Improvements with Windows Server 2008 R2
  •  Windows Server 2008 : Understanding the Identity Management for UNIX Components
  •  Windows 7 : Working with Multiple Local Group Policy Objects
  •  Exploring Group Policy in Windows 7
  •  Understanding and Using Windows Server 2008 R2 UNIX Integration Components (part 2)
  •  Understanding and Using Windows Server 2008 R2 UNIX Integration Components (part 1)
  •  Maintaining and Optimizing Windows Vista Systems : ReadyBoost and ReadyDrive
  •  Maintaining and Optimizing Windows Vista Systems : Memory Usage and the Paging File
  •  Windows 7 : Managing the Boot Sector for Hard Disk Partitions
  •  
    Most View
    Plan The Perfect Shoot (Part 1)
    Using Non-Windows Systems to Access Exchange Server 2010 : Understanding Non-Windows–Based Mail Client Options
    Top 5 Compact Cameras With Large Sensor : Leica X2, Canon G1X, Fujifilm X10, Sony RX100, Fujifilm X-S1
    Advanced ASP.NET : Data-Access Components (part 3) - Enhancing the Component with Error Handling & Enhancing the Component with Aggregate Information
    Keyboard Events in Silverlight
    Use Preview to Edit On Your Mac (Part 2)
    SharePoint 2010 : Outlining the Need for the Forefront Edge Line for SharePoint Environments
    Some Of The Biggest Brands In The World Had Their Products (Part 10)
    Samsung HW-E551 Soundbar - Convincing Cinema Sound
    SQL Server 2008 : Transact-SQL Programming - TOP Enhancements
    Top 10
    Nvidia GeForce GTX Titan 6 GB Graphics Card Review (Part 6)
    Nvidia GeForce GTX Titan 6 GB Graphics Card Review (Part 5)
    Nvidia GeForce GTX Titan 6 GB Graphics Card Review (Part 4)
    Nvidia GeForce GTX Titan 6 GB Graphics Card Review (Part 3)
    Nvidia GeForce GTX Titan 6 GB Graphics Card Review (Part 2)
    Nvidia GeForce GTX Titan 6 GB Graphics Card Review (Part 1)
    Nook HD - A High-Definition Tablet With The Heart Of A Reader (Part 4)
    Nook HD - A High-Definition Tablet With The Heart Of A Reader (Part 3)
    Nook HD - A High-Definition Tablet With The Heart Of A Reader (Part 2)
    Nook HD - A High-Definition Tablet With The Heart Of A Reader (Part 1)