CF-Patcher allows updating the DNS entries even if a Dynamic IP is given. Also better known as DynDNS.
-
a Cloudflare account where you manage your domain with DNS records.
-
Global API Key from your Cloudflare account
-
Email address you use at Cloudflare
-
Docker & Docker-Compose
This repo contains a build file for Docker & Docker Compose.
Clone this project to your computer:
git clone https://github.com.0n1cOn3/CF-Patcher
cd CF-Patcher
sudo docker build -t CF-Patcher
sudo docker compose up -d
zone-locator.py:
- Get the Global API Key from Cloudflare
- fill your email and api key in zone-locator.py and your domain name
- Run zone-locator.py and you will get all DNS records for that domain
Take a note of ZONE ID and the DNS RECORD ID if you wanna update.
config.json:
- Enter your email, zone_id, api_key, dns_record id and whatever domain/subdomain you wanna regulary update.
- Save it and start building the container
The IP check is set to 15min. This can be adjusted in main.py under the variable:
print("Sleeping for 15 minutes") time.sleep(60 * 15)