Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dudanov/mikrotik-cloudflare-ddns-scripts
This simple scripts are designed to implement DDNS feature using the service Cloudflare.
https://github.com/dudanov/mikrotik-cloudflare-ddns-scripts
cloudflare ddns ddns-updater mikrotik mikrotik-script
Last synced: about 2 months ago
JSON representation
This simple scripts are designed to implement DDNS feature using the service Cloudflare.
- Host: GitHub
- URL: https://github.com/dudanov/mikrotik-cloudflare-ddns-scripts
- Owner: dudanov
- License: mit
- Created: 2019-06-03T07:48:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T22:04:14.000Z (about 2 years ago)
- Last Synced: 2023-03-04T14:41:33.759Z (almost 2 years ago)
- Topics: cloudflare, ddns, ddns-updater, mikrotik, mikrotik-script
- Homepage:
- Size: 6.84 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mikrotik-cloudflare-ddns-scripts
This simple scripts are designed to implement `DDNS` feature using the service [Cloudflare](https://www.cloudflare.com/).
### Requirements and dependences
Scripts work only on `RouterOS` version 6.44 and above.
Depends on [Mikrotik JSON Parser](https://github.com/Winand/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](https://www.cloudflare.com/) `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](https://developers.cloudflare.com/api/operations/zones-get) and [List DNS Records](https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-list-dns-records). Using any REST client (I use [Advanced REST client](https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo) 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.