Dns client.
| C# | Visual Basic | Managed C++ |
public class Dns_Client
Public Class Dns_Client
public ref class Dns_Client
| All Members | Constructors | Methods | Properties | Fields | Events |
| Icon | Member | Description |
|---|---|---|
| Dns_ClientNew() |
Default constructor.
| |
| DnsServers |
Gets or sets dns servers.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Query(String, QTYPE) |
Queries server with specified query.
| |
| Resolve(String) |
Resolves a DNS host name or IP to IPAddress[].
| |
| ToString() | (Inherited from Object.) | |
| UseDnsCache |
Gets or sets if to use dns caching.
|
1// Set dns servers 2Dns_Client.DnsServers = new string[]{"194.126.115.18"}; 3 4Dns_Client dns = Dns_Client(); 5 6// Get MX records. 7DnsServerResponse resp = dns.Query("lumisoft.ee",QTYPE.MX); 8if(resp.ConnectionOk && resp.ResponseCode == RCODE.NO_ERROR){ 9 MX_Record[] mxRecords = resp.GetMXRecords(); 10 11 // Do your stuff 12} 13else{ 14 // Handle error there, for more exact error info see RCODE 15}
| Object | |
| Dns_Client | |
Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)