This project is aimed to adjust changing IPs in CDN/DNS Cloudflare. It allows static Domain with the IP frequently changing in the backend
This is a script that pulls the current IP and compares it with the one currently available in CloudFront. If they differ, an adjustment of the CloudFlare DNS is executed.
This task is called every 5 minutes via a cronjob. The results are logged.
You will need an API key for the use of CloudFront API. You can create one in your profile.
- Copy the file "config.default.conf" to an "default.conf"
- Enter your information in "default.conf"
- Test functionality by starting ddns.sh
- Adjust the startcronjob.sh file to reflect your correct path
- Establish the cronstask with startcronjob.sh
MIT Feel free to use as you wish. No responsibility for content.