hello
i have a chnage ip scrip that working gr8 on 2.9.xx but not working on v3b7
any idea guys
hello
i have a chnage ip scrip that working gr8 on 2.9.xx but not working on v3b7
any idea guys
there are some syntax differences in v3Beta. If you will post your script then probably we could solve the problem.
:log info “DDNS: Begin”
:global ddns-user “taloot”
:global ddns-pass “password”
:global ddns-host “*1”
:global ddns-interface “pppoe-out1”
: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”