DnsServer Class |
Namespace: MailBee.DnsMX
The DnsServer type exposes the following members.
Name | Description | |
---|---|---|
DnsServer |
Initializes a new instance of the DnsServer class with "127.0.0.1" (localhost) IP address,
and assigns the top priority to this instance.
| |
DnsServer(String) |
Initializes a new instance of the DnsServer class with the given IP address string,
and assigns the top priority to this instance.
| |
DnsServer(String, Int32) |
Initializes a new instance of the DnsServer class with the given IP address string
and priority value.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (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.) | |
Reset |
Resets failure count to 0.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
FailureCount |
Gets the number of repeated failures of the DNS server.
| |
Host |
Gets or sets an IP address of the DNS server as string.
| |
IP |
Gets an IP address of the DNS server as IPAddress.
| |
Priority |
Gets or sets a value of the preference of the DNS server. Lower values are preferred.
| |
TcpTimeout |
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.
| |
TryTcp |
Gets or sets if MailBee can make DNS queries via TCP.
| |
UdpRetryCount |
Gets or sets a value of the maximum number of times to attempt to connect
to the DNS server using the UDP protocol.
| |
UdpTimeout |
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.
|
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.