Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:

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.