Site Map Contact Us Home
E-mail Newsletter
Subscribe to get informed about
Clever Components news.

Your Name:
Your Email:
 
SUBSCRIBE
 
Previous Newsletters
 




Products Articles Downloads Order Support
Customer Portal      

DNS Query

Features | Detailed Description

The DNS Query is a component from the Clever Internet Suite library.

It can retrieve information about the host / domain by performing a general DNS lookup as specified in RFC 1034, RFC 1035, RFC 1183 and other documents.

Available in .NET, VCL and ActiveX editions.

Features:

  • Retrieve any DNS record
  • Resolve MX by email address (MX lookup)
  • Resolve IP by host name and host by IP address (A and PTR lookups)
  • Query Name Servers (NS lookup)
  • Host and Mail Server lists
  • Custom DNS Query Support
  • Free one year upgrades and support

Extract all MX record details in just few lines of code

Using DNS Query component you can easily get Mail Exchanger list associated with interested email address. DNS Query extracts all major Mail Server details: IP address, Preference, Time-to-live and many more.

// [Delphi]
clDnsQuery1.Server := '192.168.0.1';
clDnsQuery1.ResolveMX('John@domain.com');

for i := 0 to clDnsQuery1.MailServers.Count - 1 do
begin
   mx := clDnsQuery1.MailServers[i];
   Memo1.Lines.Add('Name: ' + mx.Name);
   Memo1.Lines.Add('Preference: ' + IntToStr(mx.Preference));
   Memo1.Lines.Add('IP: ' + mx.IPAddress);
end;

// [C#]
dnsQuery1.Server = “192.168.0.1”;
dnsQuery1.ResolveMX(“John@domain.com”);

foreach (MailServerInfo mx in dnsQuery1.MailServers) {
   txtMXInfo.Text += "Name: " + mx.Name +
   txtMXInfo.Text += "Preference: " + mx.Preference.ToString() +
   txtMXInfo.Text += "IP: " + mx.IPAddress + "\r\n";
}

Samples, including WinForm clients with full source code

Please see the Demos code (DnsLookup) and also the indexed Help documentation provided with the Clever Internet Suite installation to learn more about using this component in your application.

Includes support for Delphi, C++Builder, C#, VB.NET and Javascript.

Complete Delphi and C# source code

When Purchasing the Clever Internet Suite you receive the full sources for all suite components and also free unlimited support.

Interested?

    Copyright © 2000-2024