" -1]
:local currentIP [:pick $result $startLoc $endLoc]
:log info "UpdateDynDNS: currentIP = $currentIP"
# Remove the # on next line to force an update every single time - useful for debugging,
# but you could end up getting blacklisted by DynDNS!
#:set dyndnsForce true
# Determine if dyndns update is needed
# more dyndns updater request details http://www.dyndns.com/developers/specs/syntax.html
:if (($currentIP != $previousIP) || ($dyndnsForce = true)) do={
:set dyndnsForce false
:set previousIP $currentIP
:log info "$currentIP or $previousIP"
/tool fetch user=$username password=$password mode=http address="members.dyndns.org" \
src-path="nic/update?system=dyndns&hostname=$hostname&myip=$currentIP&wildcard=no" \
dst-path="/dyndns.txt"
:delay 1
:local result [/file get dyndns.txt contents]
:log info ("UpdateDynDNS: Dyndns update needed")
:log info ("UpdateDynDNS: Dyndns Update Result: ".$result)
:put ("Dyndns Update Result: ".$result)
} else={
:log info ("UpdateDynDNS: No dyndns update needed")
}
i to ti ide pod skriptu
dakle
ako ides preko web gui
system>>script
https://www.dropbox.com/s/262p0ierp5...44.37.png?dl=0
i još ti treba schedule da provjerava ip
https://www.dropbox.com/s/0onvmdr59m...46.12.png?dl=0
sa time da moj mikrotik poziva net PPPoE pa je odmah dostupan, tako da sam ja moral u firewall stavit blokade
a ti moras u modem preusmjerit port 80 ili winbox 8291 na taj mikrotik