They call library functions in the DLL, which in turn handle all communications with DNS servers (over UDP or TCP) and return the final results of the lookup back to the applications.
Microsoft | Microsoft Windows | Microsoft Office | Microsoft Word | Microsoft Exchange Server | Microsoft SQL Server | Microsoft Excel | Microsoft Outlook | Microsoft Visual Studio | Microsoft PowerPoint | DNS | Microsoft Research | Microsoft Exchange | Microsoft Access | Microsoft SharePoint | Microsoft Train Simulator | Microsoft Press | Microsoft Visio | Microsoft Mail | Microsoft Certified Professional | Microsoft XNA | Microsoft Visual Studio Express | Microsoft Surface | Microsoft Exchange Hosted Services | Microsoft Exchange Client | Microsoft Dynamics | Microsoft Data Access Components | Microsoft Cinemania | Microsoft Bob | People (Microsoft service) |