Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just want to confirm if my SPF record is valid :

v=spf1 ip4: ip4: ip4: -all

Will 2 ip ranges and a specific ip on one line valid??

Thanks in advance.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Yes, that's perfectly valid. Subnets and single IPs as well as other categories are valid and in fact must be on one line. You're only allowed by the RFC to publish one SPF RR (and one TXT equivalent)

There's a very useful test utility here, where you can check it for yourself before making it live: http://www.kitterman.com/spf/validate.html

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.