Dynamic DNS Update

In order to update DDNS (Dynamic DNS) on MikroTik router or RouterOS device, we have to make use of the scripting and scheduler feature.

There are some DDNS update scripts for popular providers contributed by the MikroTik community on MikroTik Wiki, which are listed as below.

In this guide, we can only select one of them to show you here. We selected dynDNS for an example here.

Thanks for the community, we have a ready script for dynDNS at http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS, so we copied the script from there.

# Define User Variables
:global ddnsuser “DYNDNSUSER”
:global ddnspass “DYNDNSPASS”
:global ddnshost “DYNDNSHOST”

You have to replace the variables above with your dynDNS account details and hostname. For example:

:global ddnsuser “cloudstore”
:global ddnspass “123456”
:global ddnshost “cloudstore.dyndns.org”

Run WinBox.

Click “System” then “Scripts”.

Press the plus button.

Change the name to “dyndns” and paste the full script with your account details into the textarea. Press “OK” to complete.

Click “System” on the menu then “Scheduler” on the sub-menu.

Press the plus button.

Change the values as below and write the name of the script in “On Events:’. Interval is the time before the script is ran again. The value here stated 15 minutes, so the router will check and update the DDNS every 15 minutes.

Press “OK” to complete. The update will run a

2 comments on “Dynamic DNS Update
  1. Azzie says:

    Your post is really well written and insightful. Glad I found your website, warm regards from Azzie!

  2. how to flush dns on Windows 9 says:

    I have been exploring for a bit for any high quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this website. Reading this info So i am happy to exhibit that I have an incredibly just right uncanny feeling I found out exactly what I needed. I so much indubitably will make certain to do not fail to remember this site and provides it a glance regularly.

Leave a Reply

Your email address will not be published. Required fields are marked *

*