I’ve upgraded my VPS and now have a new IP address for 40 domains so have to update the DNS on Cloudflare for all of them. Is there a way to do a bulk update instead of having to edit every entry manually?
Could be done via API to fetch the zones and then for each zone get DNS records.
Therefore, using the PATCH to update the particular part (IP address) of the specific DNS record(s) of that zone, otherwise PUT to overwrite it completly.
- Cloudflare API v4 Documentation - List Zones
- Cloudflare API v4 Documentation - Lisz DNS records for a zone
- Cloudflare API v4 Documentation - Update DNS record for a zone
Someone might have to write a script for it as a
for loop to automate it.
There was some Cloudflare Postman collection too for help:
Otherwise, I believe it could also be done using the Terraform
AFAIK the only way to do a bulk update is via the API (https://api.cloudflare.com).
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.