How to create SPF record for multiple IPs?
I do not find any guidelines regarding how to configure multiple IPs into an SPF record. So far I used (for example):
v=spf1 ip4:180.72.100.0/24 a mx ?all
But now I should add another range of IPs that are allowed, e.g.
v=spf1 ip4:180.72.100.0/24 ip4:180.20.111.0/24 a mx ?all
Is开发者_如何学C the second syntax correct? Thanks.
Yes the second syntax is fine.
Have you tried using the SPF wizard? https://www.spfwizard.net/
It can quickly generate basic and complex SPF records.
Use CIDR notation such as ip4:180.72.100.0/24
for the range 180.72.100.0
- 180.72.100.255
.
And you can have multiple ranges in your SPF record like so:
v=spf1 ip4:180.72.100.0/24 ip4:180.20.111.0/24 a mx ?all
You can use this calculator to determine the correct notation for your IP ranges:
https://account.arin.net/public/cidrCalculator
Try this:
v=spf1 ip4:abc.de.fgh.ij ip4:klm.no.pqr.st ~all
精彩评论