SIGN UP MEMBER LOGIN:    
ARTICLE

DNS Resolver using DNSAPI.DLL

Posted by Patrick Lundin Articles | Internet & Web April 15, 2002
This is a DNS resolver using the dnsapi.dll, it can do all sorts of DNS lookups and not just simple a record lookup like the Dns class in the .NET framework.
Reader Level:
Download Files:
 

This is a DNS resolver using the dnsapi.dll, it can do all sorts of DNS lookups and not just simple a record lookups like the Dns class in the .NET framework. For example it can do MX (mail exchange) record lookups.

Since it uses the dnsapi.dll it will only work in Windows 2000, Windows XP and .NET Server, no older systems since dnsapi.dll was introduced with W2k.

The credit for this code goes 99.99% to Bill Andreozzi, billandr@towncompass.com, my only contribution was to add some convenient methods to the class.

It is still a bit raw and could probably be made much more convenient to use but it should be useful for those looking for a full featured DNS resolver.

Login to add your contents and source code to this article
share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor