Skip to content

luckylu/cloudflare_ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare DDNS

Configuration

create a file named config.json with following fields in current directory

{
  "ApiToken": "abcde", #create your token at https://dash.cloudflare.com/profile/api-tokens
  "DnsType": "A",
  "FullQualifiedDomainName": "my.example.com", # change to your domain
  "Ttl": 120,
  "Priority": 10,
  "Proxied": false,
  "ZoneId": "abcde", #view your Zone Id at domain overview page
  "Interval": 60, # update dns record every 60 seconds, recommend less than 60 seconds
  "GetIpApi": "http://members.3322.org/dyndns/getip" # get ip api or any other api provider that return ip address
}

How to run

download the latest program from releases

./cloudflare_ddns #if config file is not in current directory use -c to specify where the config file locate

run in backgroud(macOS & linux)

nohup ./cloudflare_ddns >/dev/null 2>&1 &

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages