CloudFlare DDNS executable written in Swift.
The executable basically does this every 60 seconds.
findMyIP().flatMap { syncCF(ip: $0) }
ZONE
: Cloudflare zoneRECORD_TYPE
: DNS record typeRECORD_NAME
: DNS record nameEMAIL
: Cloudflare user email ( For authorization )API_KEY
: Cloudflare API Key ( For authorization )
git clone https://github.com/wddwycc/cf_ddns && cd cf_ddns
WITH_ENV swift run -c release
Build docker image
git clone https://github.com/wddwycc/cf_ddns && cd cf_ddns
docker build . \
--tag cf_ddns:1.0 \
--build-arg zone=x \
--build-arg recordType=A \
--build-arg recordName=base.monk-studio.com \
--build-arg email=wddwyss@gmail.com \
--build-arg apiKey=x \
Create container and run
docker create --name my_ddns cf_ddns:1.0
docker start my_ddns
# see logs of the started container
docker logs my_ddns -f