Skip to content

A simple script to update your DNS records on CloudFlare. This script leverages CloudFlare's API to dynamically update DNS records.

License

Notifications You must be signed in to change notification settings

andrearaponi/ddns-cloudy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

DDNS Self-Hosted with CloudFlare

Version

A simple script to update your DNS records on CloudFlare. This script leverages CloudFlare's API to dynamically update DNS records.

Features:

  • Check if another instance of the script is running
  • Self-installation and configuration initialization
  • Periodic updates using crontab
  • Logging of updates
  • Simple uninstallation

Installation:

  1. Clone the repository:
git clone https://github.com/andrearaponi/ddns-cloudy
  1. Navigate to the repository:
cd ddns-cloudy
  1. Ensure the script is executable:
chmod +x ddns-cloudy.sh
  1. Run the script with sudo privileges to initialize configuration:
sudo ./ddns-cloudy.sh
  1. Follow the on-screen instructions to set up your CloudFlare configuration.

Usage:

Once installed, the script will automatically run at the specified interval using crontab.

However, you can manually trigger an update by running:

/usr/local/bin/ddns-cloudy.sh run

Uninstallation:

Run the script with sudo privileges and choose the "Uninstall" option:

sudo ./ddns-cloudy.sh

Requirements:

  • curl: Used for API requests
  • dig: Used to fetch public IP address

Configuration:

Configuration is stored in ~/.cloudflare_update_config. This file contains sensitive information (API Key) and should be kept secure.

Logs:

Logs can be found in /var/log/cloudflare_update.log. They provide a history of DNS updates.

Buy me a coffee

Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this

Buy Me A Coffee

License

You can check out the full license here

This project is licensed under the terms of the MIT license.



Note: It's essential to ensure that users are aware of any sensitive information the script handles, especially when dealing with API keys. Always advise users to be cautious and not to share the configuration file with anyone else.

About

A simple script to update your DNS records on CloudFlare. This script leverages CloudFlare's API to dynamically update DNS records.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages