Home | Demo | Contact Us | Download | Support | Purchase | Shopping Cart | Products


Other Products
 
  "Thanks! This component [ListNanny] is great and is serving needs well."
R.Ploeger
 
More
Testimonies


aspNetEmail Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetTraceRoute Voted Runner Up Networking Control
Runner Up - Networking Control
[ Online Examples ]
   Online Demo
   
[ Tutorials ]
   Using aspNetDns in VS.NET [C#]
   Using aspNetDns in VS.NET [Visual Basic]
 
[ Downloadable Samples ]
   Download the C# and VB.NET Source Code Winform Examples
Download ASP.NET Source Code Example

 

Here are some simple examples for using aspNetDns

[ C# ]

using System;
using aspNetDns;
using aspNetDns.Records;

string LookupRecord  = "microsoft.com";
DnsQuery dns = new DnsQuery();
ResourceRecord[] records = dns.GetDnsRecords( DnsQueryType.A, LookupRecord );
if( records.Length > 0 )
{
	foreach( ResourceRecord r in records )
	{
		Console.WriteLine( r.AnswerString );
	}
}
else
{
	Console.WriteLine( "no address records exist for " + LookupRecord );
}

[ Visual Basic ]

Imports aspNetDns
Imports aspNetDns.Records


Dim LookupRecord As String = "microsoft.com"
Dim dns As New DnsQuery()
Dim records As ResourceRecord() = dns.GetDnsRecords(DnsQueryType.A, LookupRecord)
If records.Length > 0 Then
    Dim r As ResourceRecord
    For Each r In records
        Console.WriteLine(r.AnswerString)
    Next r
Else
    Console.WriteLine(("no address records exist for " + LookupRecord))
End If


The box is not shipped. aspNetDns is a downloadable product.