Cloudflare-Sync is a free dynamic DNS client from Cloudflare for Windows. With this application, you can automatically update your IP address in the DNS configuration of your domain at a specified interval. To do this, you will need to assemble a code syntax and insert it into a CMD window with the following information: the zone ID, the API key, and the configuration file. Then you must use the configuration file to retrieve information about the domain and the record name you want to change.
Currently Cloudflare has opened its API so that users can perform this method by inserting programming code. For this reason, you will have to run the command from a CMD window so that the client does all the work.
How to Use the Free Cloudflare Dynamic DNS Client on Windows
First, you will need to download the binary of the utility. Then you need to save it in a folder on your computer. In the same directory, create a file (Notepad) with the “.JSON” extension and open a command prompt window from there. In the JSON file, insert the following code:
[
{
"type": "A",
"name": "suleman.ga",
"proxied": true,
"ttl": 120,
"priority": 1
}
]
JSON Configuration File for Cloudflare Sync
In the file you can change the domain name, in this case “suleman.ga”, and the record type according to what you have configured in your Cloudflare account. After customizing the file, you will need to go back to the CMD window and run the following command (what is in bold is configurable):
cloudflare-sync.exe -api-token TUAPIToken -records-file-name ConfigFile -zone-id TUZoneID
Note: If you have a domain added to your Cloudflare account, you can easily generate an API token. Just make sure you have given DNS access when issuing a new API key.
When you run the syntax, you will see the response in the terminal. If it detects any change in IP addresses, the system immediately sends it to your Cloudflare account.
In this way, you can use Cloudflare as a dynamic DNS provider, but you can also use it as a program to keep your IP address updated. The service is available for Windows operating systems, but since its code is available on GitHub, you can easily compile it easily with Go Lang or Docker and use it on Mac OS X and Linux.