I found this script on the forums but I have a problem with it?
:log info "DDNS: Begin"
:global ddns-user "dakky21"
:global ddns-pass "my-password"
:global ddns-host "*1"
:global ddns-interface "T-Com ADSL"
:global ddns-system ("mt-" . [/system package get [/system package find name=system] version] )
: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"
But when I click Run Script, it says in the log:
(script info) DDNS: Begin
(script info) DDNS: Sending UPDATE!
and then it says
(ddns error) Authentication Failure
What am I doing wrong? Please help.
I also tried typing the following command in the terminal:
/tool dns-update name="dakky.dns1.us" address=89.172.1.2 ke
y-name="dakky21" key="my-password"
And then it got updated OK…
Thank you for help,
Dakky