Community discussions

MikroTik App
 
paperakis
just joined
Topic Author
Posts: 13
Joined: Mon Jun 26, 2017 10:11 pm

ip cloud script update

Tue Jul 18, 2017 10:08 pm

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
 
aghsistemas
just joined
Posts: 5
Joined: Wed May 14, 2014 5:05 pm

try this force update script

Thu Jul 20, 2017 7:34 pm

#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)")
}
 
paperakis
just joined
Topic Author
Posts: 13
Joined: Mon Jun 26, 2017 10:11 pm

Re: try this force update script

Sat Jul 22, 2017 10:20 pm

#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