Skip to content

This simple scripts are designed to implement DDNS feature using the service Cloudflare.

License

Notifications You must be signed in to change notification settings

chenzhong7241/mikrotik-cloudflare-ddns-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mikrotik-cloudflare-ddns-scripts

This simple scripts are designed to implement DDNS feature using the service Cloudflare.

Requirements and dependences

Scripts work only on RouterOS version 6.44 and above.

Depends on Mikrotik JSON Parser project installed as system script with name JParseFunctions.

Configure

Each script (IPv4 and IPv6) has a configuration area. Just insert your values.

First of all you need your Cloudflare API key. Just go to the Cloudflare site My Profile -> API Keys section -> Global API Key -> View. Follow the instructions. Now you have your API key. Keep it safe.

The service does not allow easy retrieval of required Zone and DNS record identifiers. This is only possible through a REST API methods List Zones and List DNS Records. Using any REST client (I use Advanced REST client for Chrome Browser), sending a request, you will receive the JSON answer with necessary Zone and DNS Record IDs.

Insert all variables in scripts and install in your Mikrotik device.

Running

You may add this script to system scheduler as periodically task.

Thanks for using.

About

This simple scripts are designed to implement DDNS feature using the service Cloudflare.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published