/Python-Cloudflare-DNS-Manager

It uses the Cloudflare API through the requests package to make a request to the API to add or remove DNS records. (Only some records are supported)

Primary LanguagePython

github git

What is this?

This is a Python script for adding DNS records to your domain connected to CloudFlare.

How does it work?

It takes your inputs in accordance to the record you want to create, and then makes a request to CloudFlare API with your Zone ID and your CloudFlare API key.

Usage

Caution

We recomend using Poetry, if you dont have poetry, run these commands in your shell

pip install requests
pip install python-dotenv

Run git clone -b main https://github.com/nucceteere-xyz/Python-Cloudflare-DNS-Manager.git

After that, create a .env file in the working directory.
Inside of the .env file should look like this:

ZONE_ID=YOUR_CLOUDFLARE_ZONE_ID
API_KEY=YOUR_CLOUDFLARE_API_KEY

After you do these, make sure that your env variables are set up correctly by running env_check.py.