Skip to content

SamixDev/go-cloudflare-dns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This go app updates cloudflare "A" record every hour for DDNS

It checks every hour and fetches the Public IP from ip-api.com and uses cloudflare API to update to the new IP only if the IP has changed

Create a .env in root dir and include the following

CLOUDFLARE_API_KEY=<Cloudflare API Key>
ZONE_ID=<Zone ID can be obtained from cloudflare dashboard>
ZONE_NAME=<Your website domain e.g. google.com>

docker compose

docker compose up

Releases

No releases published

Packages

No packages published