danesparza / domainname-parser

:department_store: .NET domain name parsing library (uses publicsuffix.org)
MIT License
35 stars 19 forks source link

Suggestion: Extend to auto-update the public suffix list #9

Closed CREFaulk closed 6 years ago

CREFaulk commented 8 years ago

Obviously this can be done in PowerShell and windows task scheduler but having an auto-download/clear cache would be a good method to include. It could be called from whatever service is validating email addresses however the devs want to write it.

horch004 commented 6 years ago

Hi,

The auto-update / time to live / expiration has just been implemented.

Use the new SuffixRulesExpireDays setting or set the TLDRulesCache.RulesExpireDays property. The expiration period applies to the rules cached by the TLDRulesCache and, when applicable, the cache file.

danesparza commented 6 years ago

Completed in danesparza/domainname-parser#10