If you have a dynamic IP, this is a sync application for your DNS on Cloudflare.
If you ware in linux don't download this repository, just do it:
wget https://raw.githubusercontent.com/ayelsew/ddns-cloudflare/main/setup-linux.sh
chmod +x setup-linux.sh
./setup-linux.sh
By run this script it will help you to setup the app on your system
--domain (required) - The domain base to detect zone ID -d
--dns-record (required) - The domain DNS record to be update -dr
--email (required) - Your email as administrator -e
--auth-key (required) - Token of authentication with permision to edit DNS -ak
--interval (optional) - Interval to check and update DNS record (see Interval pattern) -i
Interval pattern s - seconds m - minutes h - hours d - day w - week
e.g: 2h for two hours or 4w four weeks
e.g: ./ddns-cloudflare-linux -d examble.com -dr api.examble.com -e admin@example -ak j3y37t73dgghfasvkjldhaksd -i 30m
This script was tested only in linux. Feel free to help improve this project.
- Run
yarn run build
to generate file executable (ddns-cloudflare-linux) or download from releases - Edit param
ExecStart
and copy the fileddns-cloudflare.service
to/etc/systemd/system/
- Run
sudo systemctl daemon-reload
to reload systemclt - Run
sudo systemctl status ddns-cloudflare.service