Long SPF record issues

we have an SPF record that just started to get longer than 255 characters and will get even longer

according to RFC rules you can exceed it by concatenating the strings


this is our record in concatenated version

“v=spf1 +a +mx +ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4:” “ include: bookmap.com include:servers.mcsv.net include:zcsend.net include:zoho.com include:spf.protection.outlook -all”

however our DNS manager which is with Enom and I also called GoDaddy they don't support it in their front end DNS manager so when you enter it it cuts it off

looking for a workaround or DNS manager that fully supports it
Peter MikulaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
This is correct.

What you require is using the https://dmarcian.com/spf-survey tool which attempts to collapse SPF records + also create SPF record chains, so long records work.

Bookmark this tool. It will save you hours of hair pulling.
Peter MikulaAuthor Commented:
this is super handy!

but how does that help with my 255 character limit directly? or do I setup "subdomains" for my main domain and then add bunch of include statements i.e include:spf1.mydomain.com include: spf2.mydomian.com etc and each of the sp1. spf2 has subset of the required IPs/or domains but I guess the query is going even deeper and may exceed other limits?
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
The questions your asking are far better asked with exact data.

People trying to guess how to answer SPF related questions... well... near impossible...

Post your entire zone file + all SPF records + likely someone can assist.

SPF records are complex. Best to just place all Dmarician's suggestions in your zone file + test again.

When your SPF records are correct, you'll have a pass from the tester.

This can be a long, iterative process.
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar today!

Peter MikulaAuthor Commented:
here is my current spf record which is already too long  and we will need to add more to it soon

v=spf1 +a +mx +ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: bookmap.com include:servers.mcsv.net include:zcsend.net include:zoho.com include:spf.protection.outlook -all
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Yep. They can get very long.

Just setup the SPF chained records.

You'll have to provide your domain name for people to verify your SPF records seem correct.
Peter MikulaAuthor Commented:
we have exceeded the 10 DNS-querying mechanisms (count=16) so adding yet another include: won't help :-) any ideas?
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Best to supply your domain name, to proceed.

Or you can just follow the instructions Dmarcian provides for chaining SPF records to deal with ultra long SPF lists.
Peter MikulaAuthor Commented:
David FavorLinux/LXD/WordPress/Hosting SavantCommented:

So in your case you'd create two SPF records, which will chain...

@     IN  TXT "      v=spf1 ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: include:spf1.s5trading.com ?all"

spf1  IN  TXT  "      v=spf1 ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip6:2001:4860:4000::/36 ip6:2404:6800:4000::/36 ip6:2607:f8b0:4000::/36 ip6:2800:3f0:4000::/36 ip6:2a00:1450:4000::/36 ip6:2c0f:fb50:4000::/36 ?all"

So the first record will chain to the 2nd record.

EE's formatting a bit broken. Remove leading blanks for double quote TXT record values.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Peter MikulaAuthor Commented:
so I need to first create a spf1.s5trading.com subdomain in my DNS and add then include the second spf in the original one, ok

also, if any of the include subdomains IP ranges changes this "flattened" record might over time become slowly outdated? and need to run it again thru dmarcian tool to update it?
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
The first SPF record will be - "@     IN  TXT ..."

The second SFP record will be - "spf1  IN  TXT ..."

Correct about updates. Any time anything changes, run the tool again.

Also, just to be safe, place a monthly item in your calendar to run a quick check of your site in the tool.

Way better to do a 30 second test each month, then have something change + mail start dropping.
Peter MikulaAuthor Commented:
thanks so much for all your help, created 4 spf chained records and will have to maintain it I guess now
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Public DNS

From novice to tech pro — start learning today.