Skip to content

Cloudflare API v4&v6 Dynamic DNS Update in Bash. This repo is forked from yulewang/cloudflare-api-v4-ddns

License

Notifications You must be signed in to change notification settings

SphenHe/cloudflare-api-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare API Dynamic DNS Update Script

This script automatically updates your Cloudflare DNS record to the current IP, supporting both IPv4 (A) and IPv6 (AAAA) records.

中文 | English

Usage

To download and make the script executable:

curl https://raw.githubusercontent.com/SphenHe/cloudflare-api-ddns/dev/cf-ddns.sh > /usr/local/bin/cf-ddns.sh && chmod +x /usr/local/bin/cf-ddns.sh

Command

cf-ddns.sh
    -4|-6 \                    	# specify IPv4 or IPv6
    -a cloudflare-api-token \   # specify Cloudflare API token
    -u user@example.com \       # specify Cloudflare email
    -h host.example.com \       # FQDN of the record you want to update
    -z example.com \            # your domain (zone)

Optional flags

    -f false(default)|true \             # force DNS update, disregard local stored IP

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Cloudflare API v4&v6 Dynamic DNS Update in Bash. This repo is forked from yulewang/cloudflare-api-v4-ddns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages