Provides properties and methods which allow the developer to control whether and how MailBee will cache DNS MX (and some other) records when performing DNS MX lookup and TXT queries.
For a list of all members of this type, see DnsCache Members.
System.Object
MailBee.DnsMX.DnsCache
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
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.
Namespace: MailBee.DnsMX
Assembly: MailBee.NET (in MailBee.NET.dll)
DnsCache Members | MailBee.DnsMX Namespace | DnsServers