Mikrotik (WinBox) Dynamic Update Script

Follow

Comments

30 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.

     

  • Avatar
    infojami

    This is not working on ROS version 6.39.1.

    I am getting error message "OpenDNS reply was 911".

    ++++
    Fetched current IP as xxx.xxx.xxx.xxx
    OpenDNS: update Update needed
    OpenDNS: Sending update for XXX-Network-Name
    fetch: file "net_odns.txt" downloaded
    OpenDNS update complete.
    OpenDNS reply was 911
    ++++++

     

  • Avatar
    opendnsuser231

    I am getting this also. Was it working on a previous version for you?

  • Avatar
    infojami

    I am new to Mikrotik; never tried any other version.

  • Avatar
    opendnsuser231

    Ah OK. I have a support ticket with opendns currently so hopefully they can figure it or. I've also noticed the windows opendns client isn't updating my dashboard up either. Is this also the case with you?

  • Avatar
    infojami (Edited )

    @b3h3m07hopendns

    Looks like there is a hope for me:). I use Mac updater - so far looks ok. Please let me know the outcome.

    Cheers.

  • Avatar
    vytautasst

    Hi,

    update tool  gives 302 error. I wonder if free account has rights to update IP. I didn't find any settings for rights in dashboard

    any ideas? thank you

     

  • Avatar
    infojami

    This script doesn't works with version ROS version 6.39.1.

    I am waiting to get static IP from my ISP. NO help is available on this.

  • Avatar
    vytautasst

    Does anyone got an answer from support?   I opened ticket week ago - no any reaction so far.  May be someone know if IP can be updated using free account regular password via url https://updates.opendns.com/nic/update\3Fhostname=xxxxx  ? Or for that it is needed another password?

  • Avatar
    infomatedgte

    Script still not working as of July 27, 2017.  Tried the url on a browser and it works.  So it's the "/tool fetch " script from mikrotik that's breaking somewhere.

Please sign in to leave a comment.