ARSoft.Tools.Net - C# DNS client/server, SPF and SenderID Library
DNS Resolver
Get all addresses for a domain name using the local configured DNS servers
Copy Code
IDnsResolver resolver = new DnsStubResolver();
List<IPAddress> addresses = resolver.ResolveHost("www.example.com");

 

Get reverse domain name for a specified IP address using local configured DNS servers
Copy Code
IDnsResolver resolver = new DnsStubResolver();
DomainName name = resolver.ResolvePtr(IPAddress.Parse("192.0.2.1"));

 

Get all MX records for a domain using a recursive resolver
Copy Code
IDnsResolver resolver = new RecursiveDnsResolver();
List<MxRecord> mxRecords = resolver.Resolve<MxRecord>("example.com", RecordType.Mx);

 

 


© 2010-2015 Alexander Reinert. All Rights Reserved.

Send Feedback


This documentation was created using Document! X