Change dns to 200 websites at once

I have to change providers for my website hosting and I need to change dns setting across my portfolio of 200 websites - wondering if I can do it in one process vs one at a time - ty k

You’d have to script it and utilise Cloudflare DNS API at Cloudflare API v4 Documentation

That’s what I do myself and with my paid clients. Recently had to bulk update 30+ CF DNS records after moving my clients to new servers.

Example of updating DNS record via CF API and auto backing up entire CF DNS zone file before updating the record

./ update-dns A 111.222.333.444 proxied

backed up Cloudflare Zone Bind File at:

  "result": {
    "id": "dns_a_record_id",
    "zone_id": "zoneid",
    "zone_name": "",
    "name": "",
    "type": "A",
    "content": "111.222.333.444",
    "proxiable": true,
    "proxied": true,
    "ttl": 1,
    "locked": false,
    "meta": {
      "auto_added": false,
      "managed_by_apps": false,
      "managed_by_argo_tunnel": false,
      "source": "primary"
    "created_on": "2020-12-08T06:24:49.847963Z",
    "modified_on": "2020-12-08T06:24:49.847963Z"
  "success": true,
  "errors": [],
  "messages": []

could also vote on my feature suggestion at Support DNS alias/Origin IP/record Lists like Firewall IP Lists

1 Like

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