smeehan
By:
smeehan

Add two IP Addresses to an SPF Record?

March 28, 2018 419 views
DNS Ubuntu 16.04

Hi,

I have two websites, on two different Droplets (with different IP addresses)

Both websites use the same domain, the first website is mysite.com and second website is example.mysite.com

I need to edit my SPF record so it can allow both IP Addresses to to use the domain mysite.com

When I use the correct IP Address the SPF record below works (for one of the websites).

v=spf1 ip4:167.XX.XXX.40 include:spf.protection.outlook.com -all

Let's say one droplet IP address is: 167.XX.XXX.40 and the other IP address is 167.XX.XXX.247

How would I add both to the same SPF record?

2 Answers
jasonjpeters March 28, 2018
Accepted Answer

record - @ -- v=spf1 +a +mx ip4:167.XX.XXX.247 ip4:167.XX.XXX.40 include:spf.protection.outlook.com ~all

Hi Jason,

Thanks for the reply.

After a bit of searching I found this , it looks like this would also work:

v=spf1 ip4:167.XX.XXX.247 ip4:167.XX.XXX.40 include:spf.protection.outlook.com ~all

The a and the mx mechanisms default to +, so I guess there's no need to specify them as such.

Have another answer? Share your knowledge.