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

Your Name:
Your Email:
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.


  • 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 := '';

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

// [C#]
dnsQuery1.Server = “”;

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.


    Copyright © 2000-2021