Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Starttoaster/cloudflare-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cloudflare-ddns

Script to set up Cloudflare dynamic DNS. Dynamic DNS is a service that ensures that your domain's A Records are always pointing at the correct IP address. Should your webserver's IP address ever change, this script (while ran on the same machine as the webserver) ensures that your records always match the server's IP address. This is most useful if set as a scheduled task in crontab.

Pre-requisite Knowledge

  1. This seems obvious but you need a domain through Cloudflare. You also need to set up one or more A Records in their DNS page. Note: This script does not add new A Records, it only keeps current ones updated with your current IP address.

  2. Account Email -- This is just the email address your Cloudflare account is under.

  3. Global API Key -- This is found in the Cloudflare website under "My Profile > API Keys > Global API Key"

  4. Zone ID -- This ID is a random string of letters and numbers specific to your domain name. Found in the Cloudflare website on your domain's "Overview" page written as "Zone ID"

Setup

  1. Clone the repo: git clone https://github.com/Starttoaster/cloudflare-ddns.git

  2. Change directory: cd cloudflare-ddns/

  3. Run the script: ./cloudflare.sh

After answering a few questions, the script will complete. You can then run the same script again to update your A Records, or configure as a task in Crontab to run automatically.

Releases

No releases published

Packages

No packages published

Languages