domainaware / checkdmarc

A parser for SPF and DMARC DNS records
https://domainaware.github.io/checkdmarc
Apache License 2.0
244 stars 76 forks source link

Change publicsuffix2 to publicsuffixlist #92

Closed jlaundry closed 1 year ago

jlaundry commented 1 year ago

The public_suffix_list.dat included in the publicsuffix2 package is now quite out of date.

While one could use get_base_domain() with use_fresh_psl=True, this isn't done by checkdmarc's public interfaces, and would be a big performance hit to download the PSL on each call.

The publicsuffixlist package now includes a weekly updated psl.dat (https://github.com/ko-zu/psl/issues/25), and handles reserved domains sensibly out-of-the-box (#39).