All Collections
Learn about SPF
How to create an SPF record in DNS using Cloudflare?
How to create an SPF record in DNS using Cloudflare?

Demonstration of how to create an SPF record in DNS using Cloudflare which authorizes G Suite to send emails

Ivan Kovachev avatar
Written by Ivan Kovachev
Updated over a week ago

For this scenario we will use G Suite as the sending service and our domain would be test.ondmarc.com.

To authorize G Suite to send emails on behalf of our domain we need to create the following SPF record in DNS.

v=spf1 include:_spf.google.com ~all

How to create the SPF record in Cloudflare?

Now that we have the value for our SPF record that needs to be created let’s go ahead and add it to the DNS for test.ondmarc.com in Cloudflare.

1. Login to Cloudflare.

2. Select the account under which your domain exists.

3. Select the domain under which you would like to create the SPF record.

4. Click the DNS app as show below.

5. You will be presented with the following UI which is where you will create the SPF record.

6. Create and fill in the fields as shown at the beginning of this article.

The record type is TXT

The name of the record in this case would be test.ondmarc.com. 

The value portion of the record above contains the following:
v=spf1 include:_spf.google.com ~all

We will leave the TTL set to Automatic and click Add Record.

Please allow some time for the record to propagate and be detected.

Did this answer your question?