DnsCacheTimeout Property |
Namespace: MailBee.DnsMX
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | value 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.