I have a problem with dynamic IP address when setting up my own homelab. Therefor, this program is written to check with ipfy API every 5 minutes if the IP address of my homelab change, it could automatically update the IP address at Cloudflare.
Create config.json file at the root folder with the following value:
- domainName: Your domain name that you would like to keep update.
- cloudflareZoneID: Your own Cloudflare zone ID. You could easily found it at the overview page of your domain.
- cloudflareAPIToken: Your API token which allow you to read and edit your DNS of all your zone.
- cloudflareAccountID: Your own Cloudflare account ID. You could easily get it through the URL bar of your browser when access your home account.