https://github.com/thespeedx/cf-patcher
A personal Cloudflare DNS Record Patcher
https://github.com/thespeedx/cf-patcher
Last synced: 12 months ago
JSON representation
A personal Cloudflare DNS Record Patcher
- Host: GitHub
- URL: https://github.com/thespeedx/cf-patcher
- Owner: TheSpeedX
- Created: 2022-11-10T06:54:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T10:27:18.000Z (about 3 years ago)
- Last Synced: 2025-04-11T23:51:57.502Z (about 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CF-Patcher
CF-Patcher allows updating the DNS entries even if a Dynamic IP is given.
Also better known as DynDNS.
## Requirements
- 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.
## Build
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
## Configure
zone-locator.py:
1. Get the Global API Key from Cloudflare
2. fill your email and api key in zone-locator.py and your domain name
3. 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:
1. Enter your email, zone_id, api_key, dns_record id and whatever domain/subdomain you wanna regulary update.
2. Save it and start building the container
## Change IP Check time
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)