On 10/12/2018 15:31, Chris Seymour wrote:
Hi Chris,
> Thank you Anand,
> I have tried that but I do not get the expected results I am looking for.
> I have a domain that I know has a SPF record in place (as checked by
> MXToolbox), but when I try to do the SPF query from dnspython I do not see
> the record.
> Should I be also checking the TXT record as all I would like to show is the
> actual entry "v=spf1 ip...."
Then your original question was slightly incorrect. What you want to do
is look up the TXT record of the domain, and parse the results to see if
it contains SPF-related information. But I suspect you can handle that
now, by replacing QTYPE "spf" with QTYPE "txt" and then doing things
with the response.
Regards,
Anand