Updating multiple records on different domains at once or domain templates

Hello!

I’d like to know if it’s possible to update multiple records on different domains at the same time.

Here’s the situation, you have 100 domains hosted on cloudflare DNS, and then you have to switch severs, so you’d have to go in every single domain and update several records (A, MX, SPF, etc).

I’m sure there’s a simpler way to do this but I can’t seem to find it. I also use DNS Made Easy and they introduce the concept of “templates” so all you have to do is edit the template or “master” and then all domains associated with that master get updated.

Cheers!

2 Likes

Nothing of that sort available yet.

However you can use the API to automate it → Cloudflare API v4 Documentation

That’s too bad :frowning: I pay for DNSME and I’d switch all my domains in a heartbeat to cloudflare if it had this… Maybe I’m just too paranoid that everything will crash and I’ll have to recover everything as fast as possible haha

Thanks!

You can always post a request at #feedback:prodreq.

Though, a script doing this via the API shouldnt be too difficult to make.

You can also use Terraform, which we have heavily invested in for managing infrastructure as code. It has the advantage of being easily versioned in Git (et al) for change control purposes.

2 Likes

I think both this:

Terraform

and this:

Postman Cloudflare API Collection

should solve the issue :slight_smile:

thanks to @sandro and & @cs-cf

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.