No luck for me, The script doesnt work. 5.22 ROS on RB750, with multiple links and pppoe connections.
Thanks Anyway.
No luck for me, The script doesnt work. 5.22 ROS on RB750, with multiple links and pppoe connections.
Thanks Anyway.
I have a RB750 running ROS 5.24.
I tried the script for version 5x on http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS
No luck for me as well as I tried many different scripts find on the web. I tried to run fragment of script in the terminal windows, trying to debug what went wrong with it. we failed at:
/tool fetch mode=http address=“checkip.dyndns.org” src-path=“/” dst-path=“/dyndns.checkip.html”
the error was:
while resolving ip: could not get answer from dns server
It’s interesting that when I change “checkip.dyndns.org” portion of above to IP address
/tool fetch mode=http address=“216.146.39.70” src-path=“/” dst-path=“/dyndns.checkip.html”
status: finished
YET, I couldn’t update my IP, and I cannot verify whether I fetch my dynamic ip as well.
No IP shows in the enviroment page.
Does anyone have any ideas ?
Tks
Just got it working on RB750 v.5.24.
I just realized that adding DNS through
(IP>DNS>8.8.8.8…etc)
is different to
(IP>DNS>Statis>8.8.8.8…etc)
But I don’t know their difference.
Perfect, yeah, thank you very much. The only script I’ve seen that cares about DynDNS TOS and return status.
It’s a matter of respect to do this.
RB2011UAS
6.1 → 6.18
Fetch tool can use ssl in ROS 6.n, so I changed it: (http to https)
DynDNS also recommends to use ssl-mode
:set vlocalurl (“https://” . “$username” . “:” . “$password” . “@” . “members.dyndns.org” . “/nic/update?hostname=” . “$hostname” . “&myip=” . “$currentIP”)
/tool fetch mode=https url=$vlocalurl dst-path=$vDynDNSResponseFile
Thank you for sharing your work,
ciao Marco!
You are right to be against double-NAT in general, but a dyndns TOS-compliant double-NAT option in your script would be useful and appreciated.
I’m working with an ISP that is by far the best in the area (4G into fiber), but their internal configuration means double-NAT is unavoidable. Worse, their external IP doesn’t change often but it is subject to change.
They work great with VoIP (FreePBX) but the external IP is necessary to make it work properly. The double-NAT solution would probably risk many minutes of downtime while waiting for an IP check since you can’t check dyndns that often, but that would still be good enough to run VoIP in most cases.
The other double-NAT scripts write out a file to flash memory each check, which brings back that problem. I wonder if it is possible to do a double-NAT check without having to write to flash each time.
Do you have a full script thats works with loopia to share?
It would have helped me a lot!
This is working with Loopia today…
:global ddnsuser "loopia-login"
:global ddnspass "loopia-password"
:global ddnshost "your-domain.se"
:global interfac "ether1-gateway"
:global ipfresh [ /ip address get [/ip address find interface=$interfac ] address ]
:if ([ :typeof $ipfresh ] = nil ) do={
:log info ("DynDNS: No ip address on $interfac .")
} else={
:for i from=( [:len $ipfresh] - 1) to=0 do={
:if ( [:pick $ipfresh $i] = "/") do={
:set ipfresh [:pick $ipfresh 0 $i];
}
}
:global ipddns [:resolve $ddnshost];
:if ($ipddns != $ipfresh) do={
:log info "DynDNS: $ipddns != $ipfresh, Sending update!";
/tool fetch user=$ddnsuser password=$ddnspass keep-result="no" \
url="https://dyndns.loopia.se/index.html?hostname=$ddnshost&myip=$ipfresh&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
:log info "DynDNS: IP updated to $ipfresh!"
} else={
:log info "DynDNS: $ipddns == $ipfresh, No update needed";
}
}