So i decide to write my own version.
Dyndns domain TTL is 60 seconds by default, so...
Resolving it after TTL instead check against checkip is NAT ok and flash friendly
I run my script every two minutes.
Code: Select all
# Variables Locales
:local username "USERNAME"
:local password "PASSWORD"
:local hostname "HOSTNAME"
:local adslinterface "pppoe-out1"
####################################################
# actual IP
:local ipactual [ /ip address get [/ip address find interface=$adslinterface ] address ]
:set ipactual [:pick $ipactual 0 [ : find $ipactual "/" ] ]
# dyndns IP
:local ipremota [ :resolve $hostname ]
:if ($ipactual != $ipremota) do={
:log info "-----------------= DynDNS Updater =-----------------"
:log info "Host: $hostname"
:log info "IP registrada: $ipremota"
:log info "IP actual: $ipactual"
:local str "/nic/update?hostname=$hostname&myip=$ipactual&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
/tool fetch address=members.dyndns.org src-path=$str mode=http user=$username password=$password dst-path="ip_actual_dyndns.txt" keep-result=no
:log info "-----------------=-=-=-= =-=-=-=-=-=-=-=----------------"
}