Skip to content

This script aims to make the dynamic public ip of your local server, a falsy static one.

License

Notifications You must be signed in to change notification settings

anywayzz/ez-ddns-cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EZ DDNS CLOUDFLARE

This script aims to make the dynamic ip of your local server, a falsy static one. It does this by regularly updating cloudflare's dns record. Basically, your domain will always be updated every IP change.


Prerequisites

  • An account on Cloudflare.
  • At least 1 DNS record setup on cloudflare
  • Crontab installed

Effects

Your domain will point to the public address of the machine in which you execute this script.

Configuration

Clone this repository

git clone https://github.com/anywayzz/ez-ddns-cloudflare

Open config.py and set

API_TOKEN = " { YOUR API TOKEN } "
ZONE_ID = 	" { YOUR ZONE ID } "
EMAIL = 	" { YOUR CLOOUDFLARE EMAIL } "
DOMAIN = 	[" { THE DOMAIN/S TO BE UPDATED } "]

if you don't know your API TOKEN check here.
if you don't know your ZONE ID check here.

Finally start the script:

chmod +x ezddns.sh;
./ezddns.sh

About

This script aims to make the dynamic public ip of your local server, a falsy static one.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published