DnsCacheTimeout Property
Gets or sets the interval which specifies for how long DNS records in the cache remain actual.

Namespace: MailBee.DnsMX
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public static int Timeout { get; set; }

Property Value

Type: Int32
Positive integer value which specifies the amount time (in minutes) to allow DNS records remain in the cache. The default value is 90 minutes.
MailBeeInvalidArgumentExceptionvalue is negative or zero.

By default, a DNS record in the cache considered be valid for 90 minutes since the moment it was added to the cache. Increasing Timeout value may improve performance in the case if DNS records of recipient domains change rarely.

In the case if all DNS records become invalid (for instance, after reconfiguration of the network) and the cache is no longer valid, the developer may manually initialize it by either running the application again or calling Clear method to clear the DNS cache of the existing instance of the application.

See Also