DnsServer Class
Represents a DNS server to be queried about domain names of the Internet hosts.
Inheritance Hierarchy
SystemObject
  MailBee.DnsMXDnsServer

Namespace: MailBee.DnsMX
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
[SerializableAttribute]
public class DnsServer : ISortableByPriority

The DnsServer type exposes the following members.

Constructors
  NameDescription
Public methodDnsServer
Initializes a new instance of the DnsServer class with "127.0.0.1" (localhost) IP address, and assigns the top priority to this instance.
Public methodDnsServer(String)
Initializes a new instance of the DnsServer class with the given IP address string, and assigns the top priority to this instance.
Public methodDnsServer(String, Int32)
Initializes a new instance of the DnsServer class with the given IP address string and priority value.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Resets failure count to 0.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyFailureCount
Gets the number of repeated failures of the DNS server.
Public propertyHost
Gets or sets an IP address of the DNS server as string.
Public propertyIP
Gets an IP address of the DNS server as IPAddress.
Public propertyPriority
Gets or sets a value of the preference of the DNS server. Lower values are preferred.
Public propertyTcpTimeout
Gets or sets the amount of time (in milliseconds) the system will wait for TCP message to be sent or received before the operation times out.
Public propertyTryTcp
Gets or sets if MailBee can make DNS queries via TCP.
Public propertyUdpRetryCount
Gets or sets a value of the maximum number of times to attempt to connect to the DNS server using the UDP protocol.
Public propertyUdpTimeout
Gets or sets the amount of time (in milliseconds) the system will wait for UDP message to be sent or received before the operation times out.
Top
Remarks

MailBee uses instances of this class in order to lookup MX records of the Internet hosts. For example, Smtp component can perform MX lookup queries in direct-send scenarios (sending e-mails without SMTP relay server).

You can also perform DNS MX, TXT and PTR/rDNS queries expilicitly. See Smtp methods like GetMXHosts(String), GetPtrData(String) and GetTxtData(String) for details.

RblFilter class uses DNS servers to query RBL databases.

See Also