Gets or sets the interval which specifies for how long DNS records in the cache remain actual.
Positive integer value which specifies the amount time (in minutes) to allow DNS records remain in the cache. The default value is 90 minutes.
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.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | value is negative or zero. |
DnsCache Class | MailBee.DnsMX Namespace