I have been getting an error of 'too many DNS lookups' for my site's SPF record.
After I read the suggestions from the following posts, I decided to follow the advice to try and consolidate my services to reduce the number of lookups.
References: Too many DNS lookups in an SPF record PermError SPF Permanent Error: Too many DNS lookup
Right now my SPF record is this:
v=spf1 a include:servers.mcsv.net include:_spf.google.com include:spf.mtasv.net include:jangomail.com ~all
I want to consolidate my services so that it ends up being this:
v=spf1 a include:servers.mcsv.net include:_spf.google.com ~all
I would replace my jangomail with Mandrill (part of Mailchimp servers.mcsv.net) for my transactional emails. And mtasv.net is redundant because we don't use this service anymore.
My situation is exactly like the one posed in this question here:
Kaitlin from Mandrill suggests setting up an SPF record to include Mailchimp and Google Apps as per below.
v=spf1 a include:servers.mcsv.net include:_spf.google.com ~all
However, if I do this, does it not end up being more than 10 lookups and therefore still exceeding the limitations of the protocol?
include:servers.mcsv.net includes
_spf.google.com includes:
Total 11 lookups.
Is there any other way around this?
Consolidation using include
may always end up making too many DNS look-ups as the included domains may include others.
To see my approach on solving this issue, have a look at SPF-tools which reassembles the original SPF record and outputs only the ip4
and ip6
fields into the new one. Feel free to ask me any questions, I will gladly help/extend the documentation in the repository.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.