Just finished my bash script.
https://gist.github.com/rallisf1/d742898d60eb42804939e083c626292d
Input your API keys and Enhance organization ID. If you get no errors in the DRY run, change the DRY variable to false
and rerun.
I can confirm that the proxy status is retained when enabling the Cloudflare integration, even though not visible before that.
KNOWN BUG: DNS records of subdomains created as main websites will be stored in the main domain's website
P.S. You will need curl
and jq
packages in the machine you run this code. It doesn't need to be an enhance server, any linux enrivonment will do.
P.S.2. The records are not automatically synced, you need to add/edit any record for them to be pushed to cloudflare.
P.S.3 Syncing SRV records is broken