Page 1 of 1

ip cloud script update

Posted: Tue Jul 18, 2017 10:08 pm
by paperakis
Hello guys,

Anygood script to have an auto ip cloud updated every 2 minutes please?

Since my mikrotik is not ppoe ip cloud seems to not working correctly.

Please help :3

try this force update script

Posted: Thu Jul 20, 2017 7:34 pm
by aghsistemas
#get current external IP
:global currentIP [:resolve myip.opendns.com server=208.67.222.222];
:global resolvedIP;

# Determine if DNS update is needed
:if ($currentIP != $resolvedIP) do={
:log info ("Mynetname update needed: Current-IP: $currentIP Resolved-IP: $resolvedIP")
/ip cloud force-update
:global resolvedIP [:resolve myip.opendns.com server=208.67.222.222];
} else={
:log info ("Mynetname: No update needed ($currentIP=$resolvedIP)")
}

Re: try this force update script

Posted: Sat Jul 22, 2017 10:20 pm
by paperakis
#get current external IP
:global currentIP [:resolve myip.opendns.com server=208.67.222.222];
:global resolvedIP;

# Determine if DNS update is needed
:if ($currentIP != $resolvedIP) do={
:log info ("Mynetname update needed: Current-IP: $currentIP Resolved-IP: $resolvedIP")
/ip cloud force-update
:global resolvedIP [:resolve myip.opendns.com server=208.67.222.222];
} else={
:log info ("Mynetname: No update needed ($currentIP=$resolvedIP)")
}
thanks buddy! it's working