Using Dynamic DNS with MikroTik routers allows businesses and home users to quickly and easily access their networks from anywhere in the world. Unfortunately, setting up a Dynamic DNS service on MikroTik routers can be complex. Still, once configured correctly, it provides fast and reliable access to internal systems without having to remember constantly changing IP addresses.
Open the DNS zone which you want to connect with Dynamic URL. Find the A or AAAA record which you would like to be updated dynamically and click on the arrows on the row for this record. Afterwards, you have to Activate the Dynamic URL in the pop-up. Once you do it, you will see example scripts, used for record update. In this setup, you will need the first one, which looks like this:
https://ipv4.cloudns.net/api/dynamicURL/?q=your-string-here
or
https://ipv6.cloudns.net/api/dynamicURL/?q=your-string-here
In order to configure Dynamic URL in MikroTik RouterOS using Winbox, you have to follow the steps below:
1. Connect to your MikroTik RouterOS
2. Select System and click on Scheduler
3. Click on Add
4. Type in a name for your scheduled task
5. Make sure Start Time is set to startup
6. Set the Interval. We recommend to set it at 1 hour
7. In the text box On Event enter the following task:
/tool fetch url="https://ipv4.cloudns.net/api/dynamicURL/\?q=your-string-here" mode=https
8. Click on OK
Note: The following "policy" boxes must be checked:
In order to configure Dynamic URL in MikroTik RouterOS using Winbox for multiple interfaces, you have to follow the steps from 1 to 6 from the previous configuration shown. In step 7 in the text box On Event enter the following task:
/tool fetch url="https://ipv4.cloudns.net/api/dynamicURL/\?q=your-string-here&ip=X.X.X.X" mode=https
Last click on OK
Note: The following "policy" boxes must be checked:
If you prefer to use the RouterOS's console, you have to create a task at the Scheduler. To do it, please enter the following command:
/ system scheduler add name="cloudns" on-event="/tool fetch url=\"https://ipv4.cloudns.net/api/dynamicURL/\?q=your-string-here\" mode=https" start-date=jan/01/1970 start-time=startup interval=1h comment="" disabled=no
Note: The date above is an example. You can use any other date, but make sure it is not later, than the current day.