DNS update script in v3

Anybody knows why the DNS udate script doesn’t work in RouterOS v3?

[admin@MikroLAN_Base] /system script> run dyn_dns;
expected end of command (line 3 column 13

:log info “DDNS: Begin”

:global ddns-user “miusuario”
:global ddns-pass “micontraseña”
:global ddns-host “*1”
:global ddns-interface “PPPoE-Client”
:global ddns-ip [ /ip address get [/ip address find interface=$ddns-interface] address ]

:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }

:if ([ :typeof $ddns-ip ] = nil ) do={

:log info ("DDNS: No ip address present on " . $ddns-interface . “, please check.”)

} else={

:if ($ddns-ip != $ddns-lastip) do={

:log info “DDNS: Sending UPDATE!”
:log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip “/”] ] key-name=$ddns-user key=$ddns-pass ]
:global ddns-lastip $ddns-ip

} else={

:log info “DDNS: No change”

}

}

:log info “DDNS: End”

http://wiki.mikrotik.com/index.php?title=Dynamic_DNS_Update_Script_for_ChangeIP.com

PS - You posted password in that post, you should change your password now : )

Dooooooh !!!

:laughing:

this is not my real password… micontraseña=mypassword and miusuario=myuser in spanish. Thank you muchachos!!

Great!!

But you know we all have our “blond moments”…

uh um. I mean… Oh “crud” I just upset all the blonds…