Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug in retrieving the DKIM public key: For some emails, the DKIM public key is not stored TXT record directly in `selector._domainkey.domain`, but instead points to a CNAME. For example, when retrieving the DKIM public key for the following domain: `protonmail._domainkey.proton.me`, we first need to resolve the CNAME for this domain: `protonmail.domainkey.drfeyjwh4gwlal4e2rhajsytrp6auv2nhenecpzigu7muak6lw6ya.domains.proton.ch`. However, using the "dns" npm package, the CNAME cannot be resolved. With this update, all DNS resolutions will be performed using google DNS-over-HTTPS (DoH).
- Loading branch information