DnsCache Class |
Namespace: MailBee.DnsMX
The DnsCache type exposes the following members.
Name | Description | |
---|---|---|
Clear |
Removes all existing entries from the DNS cache.
| |
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.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Count |
Gets the number of DNS records already in the cache.
| |
Enabled |
Gets or sets whether DNS records caching should be used.
| |
SmtpMXMaxFailureCount |
Gets or sets the maximum number of seriated failures of the SMTP MX server required in order to consider
the SMTP MX server down.
| |
SmtpMXNextAttemptInterval |
Gets or sets the amount of time (in milliseconds) the failed SMTP MX server spends in quarantine.
| |
Timeout |
Gets or sets the interval which specifies for how long DNS records in the cache remain actual.
|
By default, DNS MX caching is enabled which may greatly increase performance of "direct send" operations which involve sending large amounts of e-mails directly to end recipients mail servers (without using SMTP relay server).
MailBee also maintains TXT and PTR records cache. TXT records are used for DomainKeys sender verification (a sort of antispam technology). Checking PTR records (reverse DNS) of the IP address from which the e-mail came (extracted from MailMessage.TimeStamps[0].From) is another method of sender verification.
Note |
---|
DNS cache maintained by DnsCache class is shared by all instances of Smtp objects within the application domain. |