This program is based on Cloudflare API V4.
This program allows you to manage more than one domains by using Cloudflare ddns services. If you have more than one ips and you need to ddns all of them but your route is not support DDNS or your can't get router access.
THIS PROGRAM IS THE BEST CHOICE!!
You just need to prepare a config file and a machine.
2020-Mar-4 Update: .tk .ga etc. These free domain isn't support API to update ip anymore.
You have to write your email, Global Key, Main Domain, Subdomains and Detect IP URL in config file.
-
email: Which is your Cloudflare account email address.
-
apikey: Your Cloudflare Global API Key. (How to get? See end of README)
-
mainDomain: Your top-level domains.(like "example.com" not "www.example.com")
-
subDomainArray: Your Subdomains array. Like ["a", "b", "c"]
-
if your maindomain is "example.com" , these subdomains will be update.
-
a.example.com
-
b.example.com
-
c.example.com
-
-
-
IPdetectAddress: A url which can return your IP address. In china you can use "http://members.3322.org/dyndns/getip" to get your IP.
- WARNING: This url must only return ip!
{
"email" : "your@Email",
"apiKey" : "your Global key",
"mainDomain" : "google.com",
"subDomainArray" : ["a", "b", "c"],
"IPdetectAddress" : "http://members.3322.org/dyndns/getip"
}
- Download program from release page or find it in ./bin
- Open a terminal.
- Into the directory where the program is.
- Make sure you know where the config file is.
- Use command line to run the program.
# .\cloudflareDDNS-linux64 -c config.json
- If you are first run this program and you are using linux.Please run this command first.
# sudo chmod +x .\cloudflareDDNS-linux64
Windows is as same as Linux.
To retrieve your API key:
- Log in to the Cloudflare dashboard.
- Under the My Profile dropdown, click My Profile.
- Click the API tokens tab.
- In the API keys section, choose one of two options: Global API Key or Origin CA Key. Choose the API Key that you would like to view.