All Collections
Learn about DMARC
How to generate a DMARC record using OnDMARC and publish it in Cloudflare
How to generate a DMARC record using OnDMARC and publish it in Cloudflare

Use OnDMARC to generate a DMARC record, and then publish it in Cloudflare.

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

To demonstrate how to generate a DMARC record we will use a subdomain called and signup to OnDMARC to generate the record.

Once we login we will have to add our domain and follow the steps.

During step 3 of the above process, you will be presented with two options to choose from: Dynamic DMARC & Manual DMARC.

  • Dynamic DMARC will allow you to control your DMARC record and policies from within OnDMARC by delegating your DMARC record to us using NS or CNAME record. This is our recommended option.

  • The Manual DMARC option will present you with a TXT record for DMARC and every time you need to make a change to your DMARC record you will have to login to your DNS.

Here is the Dynamic DMARC option shown below:

Here is how to create the Dynamic NS record 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 DMARC record.

4. Select the DNS records menu.

5. Click on Add record and populate the record with the information from OnDMARC. Remember to select the correct type of record (NS in this case) as demonstrated below.

6. Save your record.

Once you have saved your record, you can go back to OnDMARC, go to Dynamic Services and then select the DMARC tab at the top. You will notice that the SMART record has been found in DNS as indicated below.

At this moment, your DMARC record has been correctly found and all you have to do is wait for DMARC reports to arrive.

Here is how to create the Manual TXT record in Cloudflare?

If you choose to go through with the Manual TXT record option, OnDMARC will again generate the required values.

You will have to follow the same steps 1-5 in Cloudflare, as specified above, but select the TXT option and populate the fields with the required information.

Here is an example of how it may look:

For more information on managing DNS records in Cloudflare, please follow the link below.

Did this answer your question?