nemke
1
Hello
Can someone please post script for dynDNS ip update which work.
I used one but after ROS upgrade to 6.30 ver she stop to work. I try many scripts from forum but no luck, nothing work…
My router is 6.33.5 ver, so some script which work, would be vary helpfull. I need script for double NAT (MT is behind ISP router).
Thank you
XeNeX
2
Working Good
:global ddnsuser “XXXXXXXX”
:global ddnspass “XXXXXXXX”
:global theinterface “pppoe-out1”
:global ddnshost XXXX.DYNDNS.TV
:global ipddns [:resolve $ddnshost];
:global ipfresh [ /ip address get [/ip address find interface=$theinterface ] address ]
:if ([ :typeof $ipfresh ] = nil ) do={
:log info (“DynDNS: No ip address on $theinterface .”)
} else={
:for i from=( [:len $ipfresh] - 1) to=0 do={
:if ( [:pick $ipfresh $i] = “/”) do={
:set ipfresh [:pick $ipfresh 0 $i];
}
}
:if ($ipddns != $ipfresh) do={
:log info (“DynDNS: IP-DynDNS = $ipddns”)
:log info (“DynDNS: IP-Fresh = $ipfresh”)
:log info “DynDNS: Update IP needed, Sending UPDATE…!”
:global str “/nic/update?hostname=$ddnshost&myip=$ipfresh&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG”
/tool fetch address=members.dyndns.org src-path=$str mode=http user=$ddnsuser
password=$ddnspass dst-path=(“/DynDNS.”.$ddnshost)
:delay 1
:global str [/file find name=“DynDNS.$ddnshost”];
/file remove $str
:global ipddns $ipfresh
:log info “DynDNS: IP updated to $ipfresh!”
} else={
:log info “DynDNS: dont need changes”;
}
}
nemke
3
It doesn;t work…
It shows in log but in the end IP is not changed on dynDNS server
RB2011 6.34.1 ver
XeNeX
4
i have 5 router i configurated . working very good. maybe your config not true?
The mistake is the
:global theinterface “pppoe-out1”
You have to set your WAN Port as the dyndns Interface.