I need RB750gl v5.16 changeip script
Thanks in advance
/ip address print Flags: X - disabled, I - invalid, D - dynamic # ADDRESS NETWORK INTERFACE 0 ;;; default configuration xxx/24 xxx bridge-local 1 xxx/24 xxx ether1-gateway 2 D xxx/22 xxx ether1-gateway
:global ddnsuser "xxx" :global ddnspass "xxx" :global ddnshost "xxx" :global ddnsinterface "xxx" :global ddnsip [/ip address get [/ip address find where dynamic] address] :global ddnslastip #:if ([:len [/interface find name=$ddnsinterface]] = 0 ) do={ :log info "DDNS: No interface named $ddnsinterface, please check configuration." } :if ([ :typeof $ddnslastip ] = "nothing" ) do={ :global ddnslastip 0.0.0.0/0 } :if ([ :typeof $ddnsip ] = "nothing" ) do={ :log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.") } else={ :if ($ddnsip != $ddnslastip) do={ :log info "DDNS: Sending UPDATE!" :log info [ :put [/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ] :global ddnslastip $ddnsip } else={ :log info "DDNS: No changes necessary." } }