domainaware / checkdmarc

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

_query_dns doesnt use all nameservers in the list #67

Closed thesyst closed 1 year ago

thesyst commented 3 years ago

If you list several servers in 'nameservers' argument of any function (for example '_checkdomains') and the first server on the list won't answer during timeout, 'dns.exception.Timeout' will be raised. No other servers on the list will have a chance to process this query, only the first one will.

Example (first server was made incorrect intentionally):

result = checkdmarc.get_spf_record('google.com', nameservers=['8.8.8.81', '8.8.8.8'])
seanthegeek commented 1 year ago

This was fixed in a previous release