Dynamic DNS configuration with MikroTik

Pre-configuration requirements

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

Configruation using Winbox

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

Configuration using console

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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more