1

Mikrotik

Hello, 

Having a script for Mikrotik to automatically update linked IP from the router is needed. 

Currently the Linked IP keeps changing, and then NextDNS doesn't log it, 

Can you please provide a script to add onto the terminal for RouterOS, 

So that any linked ip's are updated automatically, 

Currently it keeps dropping and I have to manually link it over and again, otherwise nextdns does not work as intended. 

Kindly please assist, 

Thank you

Any help whatsoever would be appreciated.

3 replies

null
    • Adminu
    • 1 yr ago
    • Reported - view

    https://support.opendns.com/hc/en-us/articles/227987847-Mikrotik-WinBox-Dynamic-Update-Script

    Have a look at this script above, 

    I need a similar script for Dynamic Public IP changes so that it reports to the following link provided in the setup page below, 

    "You can also programmatically update your linked IP by calling:

    https://link-ip.nextdns.io/7512r6/8794f91234ec9217" -- I changed the actual numbers in the link for privacy but thats how it looks.

    I just need the script to before this link provided above so that I can actually send the ip to the link. 

    I hope this explains the issue better.

      • Adminu
      • 1 yr ago
      • Reported - view

      Ok Folks, 

      I literally coded the answer,

      To all users facing this issue, 

      Create a scheduler, I use 5 minutes for interval, and add the following code, 

      Search on YT what a Mikrotik scheduler is if you do not know how to use it, 
       

      Example Script below, just change the link thats all

      SCRIPT

      /tool fetch http-method=post http-header-field="Content-Type: application/json" url="https://link-ip.nextdns.io/abc123/1234567812334567"


      In other words:

      /tool fetch http-method=post http-header-field="Content-Type: application/json" url="USE-YOUR-LINK-PROVIDED-UNDER-LINKED-IP-ON-NEXTDNS-SETUP-PAGE"


      Thats all so far. 

      Looking for improvements if anyone would like to add onto this forum

    • Darren_Grant
    • 1 yr ago
    • Reported - view

    No script require, in Winbox go tp IP-> Cloud enable DDNS copy the DNS Name and add it to NextDNS DDNS in linked IP

Content aside

  • 1 Likes
  • 1 yr agoLast active
  • 3Replies
  • 490Views
  • 2 Following