Skip to content

dan5py/cloudflare-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare DNS Record Updater

Update your DNS Records IPs with this simple Python script.

Cloudflare API Reference: https://developers.cloudflare.com/api/

Installation

Install the required modules

pip install -r requirements.txt

Usage

python ddns-updater.py -r my.example.com

Multiple Records

python ddns-updater.py -r my.example.com my2.example.com

Settings

In order to update the DNS record you need to provide:

  • email, used to login to Cloudflare
  • token, your API token
  • zone, the target zone ID

You can either use the cli arguments or hardcode those information directly in the script under the ARGUMENTS SECTION.

CLI Arguments

Argument Default Description Required
-e --email / The account email used to login to Cloudflare No
-r --records / The name of the record(s) to update Yes
-s --scoped false Use scoped API token No
-t --token / Your API token No
-z --zone / The target zone ID No
-T --ttl 1 (auto) TTL of the record No
-p --proxied false Enable Cloudflare proxy No
-l --log-file / Path of the log file No
-v --verbose false Enable verbose logging No
-h --help / Show help message No
-f --force false Force update No

License

MIT

About

Cloudflare DNS Record updater

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages