Skip to content

Prerequisites

rnjmur edited this page Jan 12, 2024 · 1 revision

In order to run this program you will need the following:

Python 3.8 or newer
Python requests module - to install run "pip install requests" Cloudflare Global API Token

To obtain an API Token from Cloudflare you must log into your account.
Once logged into Cloudflare click the account dropdown at the top right of the page and select "My Profile".
In My Profile on the Navigation bar on the left select "API Tokens".
At the top of the page click the "Create Token" button in the API Tokens section.
You will need to setup your API token. There are several different ways to accomplish this but I recommend selecting the "Edit zone DNS" template and configuring your settings there. I will be using this template for the rest of these instructions.
In the Create Token page set following settings:

  • Permissions: Zone - DNS - Edit (You must give this token Edit permissions!)
  • Zone Resources: Include - All zones (You can set this to Specific Zone then specify which zone(s) if you wish to create separate tokens for each zone or if you only have certain zones that you need to be able to update)
  • Client IP Address Filtering: Leave Blank
  • TTL: Leave blank (You can set a TTL if you want the tokens to automatically expire at a certain date)

Clone this wiki locally