Mikrotik (WinBox) Dynamic Update Script

Follow

Comments

21 comments

  • Avatar
    pat3755

    Nice Work

  • Avatar
    brawn1

    Great script.

    Please update your script with following settings:

    Current (old version):

    :local url "http://updates.opendns.com/nic/update\3Fhostname=$odnshost"

    new (i have testet on ROS 6.32.2)

    :local url "https://updates.opendns.com/nic/update?hostname=$odnshost"

     

  • Avatar
    adsadssdfasdf

    This is outstanding - thank you so very much!

  • Avatar
    Alexander Harrison

    @brawn1, currently the \3F was used as some versions didn't support the use of the "?" character. "\3F" is unicode for ? and is used in it's place. That's a great suggestion for anyone having an issue with the unicode version to also try using ? itself in the script. 

  • Avatar
    adsadssdfasdf

    I am using this as brawn has suggested -  

    :local url "https://updates.opendns.com/nic/update?hostname=$odnshost"

    It works perfectly - I suspect the older one will not work at all as these have broken in some of the fetch scripts for dyndns as well.

     

  • Avatar
    brawn1

    @Harrison, thats right.

    It works with "?" or "\3F", but you must replace in the script "http" with "https".

     

     

     

  • Avatar
    Alexander Harrison

    The scripts have been updated to https with a note that older versions may require http (and an update-only password from us to maintain account security).

  • Avatar
    ivan.reyes
    Is there any changes on fetch URL ?. I've tested both methods and still not working; when i run the script, an error is displayed. Any clue of something has changed ?. Regards.
  • Avatar
    ivan.reyes
    401 Unauthorized error, i omited that on past comment. Ivan reyes.
  • Avatar
    brawn1

    Hy ivan.reyes,

    Which Router OS Version is it ?

     

  • Avatar
    brawn1

    So, i have tested with Router OS 6.33.3 and it Works.

    Is your password, email and Networkname in the script correct ?

     

  • Avatar
    Alexander Harrison

    401 Unauthorized would result from your username or password being incorrect. If possible, remove the following characters from your password: "^, &, *, ~, `, %." and try again. 

  • Avatar
    ivan.reyes

    Problem solved, was password characters issue.

    Muchas gracias, greetings from Mexico.

  • Avatar
    alis-educacional

    Thanks for this great contribution!!

  • Avatar
    eijoo_vista

    it was not working on 5.22 version even http url but when i upgraded to 6.32 all is fine. 

    Thanks. Great work.

     

  • Avatar
    creative.asad

    can you tellme where u downloaded the 6.32 version>?

  • Avatar
    rotblitz

    What about the MikroTik download site? 
    http://www.mikrotik.com/download

  • Avatar
    thyte

    Excelente! Funcionando muito bem v6.37.3

  • Avatar
    opendns.fco

     

    I am using a 2 WAN Mikrotik RB2011

    I would need to update either WAN1 or WAN2

     

    So i would need to get IP from the correct one. Seem that the scripts do not do that even if there a line ":local inetinterface "ether1"" that make me think that scrip may include that function ...

    I find this other script that look similar and seem to get IP from correct interface but it doesn't work :-(

    Any help ?

    Thanks,

    Matthieu

     

     

  • Avatar
    brawn1 (Edited )
    Hello,
    
    This script does not use the "inetinterface", it is a placeholder.
    
    I use the script with 2 WAN (LTE or ADSL), and if 1 WAN fails, 
    it takes the next active line (route 0.0.0.0/0). greetings brawn
  • Avatar
    infojami

    Hi,

    I am new to Mikrotik.

    Do I need to schedule execution of these scripts? If yes, then how often?

    Or execute once will place the script running in the background like a "service"?

    Cheers.

     

Please sign in to leave a comment.