Skip to content

Dynamic DNS for Cloudflare. How to automatically update a Cloudflare record when the ip changes

License

Notifications You must be signed in to change notification settings

timmeinerzhagen/CloudFlareDDNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDNS for use with CloudFlare

This project is aimed to adjust changing IPs in CDN/DNS Cloudflare. It allows static Domain with the IP frequently changing in the backend

Functionality

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.

Setup

You will need an API key for the use of CloudFront API. You can create one in your profile.

  1. Copy the file "config.default.conf" to an "default.conf"
  2. Enter your information in "default.conf"
  3. Test functionality by starting ddns.sh
  4. Adjust the startcronjob.sh file to reflect your correct path
  5. Establish the cronstask with startcronjob.sh

License

MIT Feel free to use as you wish. No responsibility for content.

About

Dynamic DNS for Cloudflare. How to automatically update a Cloudflare record when the ip changes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages