hello
can anyone provide me with most working script to dynamic update my dns with no-ip.com
because i tried most of the scripts and it is not working!
i'm using cloudcore router version 6.1
thanks
log info ""
:local ipadd [/ip address get [find interface=pppoe-MODEM1 ] address ]
:local NOIPUser "username"
:local NOIPPass "password"
:local NOIPDomain "yourdomain.myftp.org"
:local IpCurrent ("$ipadd" .\ "/32");
#:log info "$IpCurrent";
:for i from=( [:len $IpCurrent] - 1) to=0 do={
:if ( [:pick $IpCurrent $i] = "/") do={
:local NewIP [:pick $IpCurrent 0 $i];
#:log info "$NewIP";
:if ([:resolve $NOIPDomain] != $NewIP) do={
/tool fetch mode=http user=$NOIPUser password=$NOIPPass url="http://dynupdate.no-ip.com/nic/update\3Fhostname=$NOIPDomain&myip=$NewIP" keep-result=no
:log info "NO-IP Update: $NOIPDomain - $NewIP"
}
}
}
log info ""
"No-IP: Previous IP xxx.xxx.xxx.xxx is equal to current IP, no update needed.
"No-IP: Current IP xxx.xxx.xxx.xxx is not equal to previous IP, update needed."
"No-IP: Sending update for <username>.no-ip.org."