Possible to update multiple A records? #4
Replies: 3 comments
-
@MrSupaBeast, the short answer is no. It's a DDNS script. not an api script for cloudflare. |
Beta Was this translation helpful? Give feedback.
-
Theoretically, it can support updating multiple records to the same IP address. You'd need to update/edit the existing script to add a foreach and maybe act on a comma-separated-list. Should not be a very heavy lift. The other option, of course, is to create x number of copies of the script, one for each record you want updated. Then you'd need an equal number of Task Scheduler jobs as well. Less clean, in my opinion. |
Beta Was this translation helpful? Give feedback.
-
update-cloudflare-dns_multiple_records.zip I went ahead and completed this for me and thought I'd share, in case anyone else wants it. @fire1ce - feel free to adopt this if you find it useful. I did not look to handle entries in multiple zones or proxied records. The only major adjustment I made was renaming the $dns_record variable in the variables file to $dns_record_list to support the comma-separated list. Hope that helps someone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to update multiple A records (@ and the www subdomain) and how is this done if possible?
Beta Was this translation helpful? Give feedback.
All reactions