I have No-IP domine subscription and I have static IP address I would like to run script on Mikrotik RB5009 v7.12 to update No-IP
with regards
/tool fetch url="https://dynupdate.no-ip.com/nic/update?myip=<YOUR_IP>&hostname=<YOUR_NO_IP_HOST>" user=<USERNAME> password=<PASSWORD>
# Data to be modified
:local noipuser "username"
:local noippass "MyStr0ngPassWoRd!"
:local noiphost "mydomain.sytes.net"
# From now on, do not modify
:local cIP [/ip cloud get public-address]
:if ([:resolve $noiphost] != $cIP) do={
# Important, has been replaced "?" with "\3F" to avoid problems.
/tool fetch url="http://$noipuser:$noippass@dynupdate.no-ip.com/nic/update\3Fhostname=$noiphost&myip=$cIP" keep-result=no
:log info "NO-IP: $noiphost -> IP updated: $cIP"
} else={
:log info "No-IP: No update needed. Current: $cIP"
}