This Repository is a quick way to start using DNSControl with Cloudflare.
To start using just clone this repository and do the following:
For this visit your Cloudflare Dashboard then in the left menu go to Manage Account -> Account API Tokens and create an API token with the permission "Edit zone DNS". Copy the API Token and your account id (The account ID can be find in the URL dash.cloudflare.com/<AccountID>/api-tokens).
In your repository go the repository settings -> Secrets and variables -> Actions. There edit the secret named CLOUDFLARE_API_TOKEN with your Token and the Variable named CLOUDFLARE_API_ACCOUNTID with your account id.
In the dnsconfig.js replace all example.com values with your own domain and configure the needed DNS records for your Domain under the D Function.
You can move your domain configuration to separated files, for this remove the // of the line //require_glob("./Domains/",true);
and create a Domains/ folder in the project, in the folder you can add then multiple files which contain your domain definitions.
A more detailed explanation of the setup for DNSControl can be found on my Website