I’m trying to get the old script to work with no luck. anyone that have a working one?
best regards
I’m trying to get the old script to work with no luck. anyone that have a working one?
best regards
post your script here
beta9 broke scripting - so it cannot be used. wait for beta10
Sam
Any update on this. I have a changeip account I use, and the 2.9 code posted in the wiki doesn’t work with 3.0RC1 or past versions — it says the script is invalid, but does not highlight what the problem is.
Brian
here are a working script.
:global “ddns-user” “username”
:global “ddns-pass” “password”
:global “ddns-host” “host”
:global “ddns-interface” “interface”
:global “ddnslast-ip”
:global ddnsip [ /ip address get [/ip address find interface=$“ddns-interface”] address ]
:if ([ :typeof $“ddnslast-ip” ] = nil ) do={ :global “ddnslast-ip” 0.0.0.0/0 }
:if ([ :typeof $ddnsip ] = nil ) do={
:log info ("DDNS: No ip address present on " . $“ddns-interface” . “, please check.”)
} else={
:if ($ddnsip != $“ddnslast-ip”) do={
:log info “DDNS: Sending UPDATE!”
:log info [ /tool dns-update name=$“ddns-host” address=[:pick $ddnsip 0 [:find $ddnsip “/”] ] key-name=$“ddns-user” key=$“ddns-pass” ]
:global “ddnslast-ip” $ddnsip
}
}
what are options for HOST field?
you can only have sets 1 and 2 so does that mean you can only update 2 Ddns’s via MT?
tks
you can use *1, *2, fqdn, or a group name. Most routers update a fqdn (single fully qualified domain/host name)