Dynamic DNS Update Script for DNSoMatic.com behind NAT

This script is a solution made of others solutions (nothing new). The goal is to update your account on DNSoMatic.com. The main advantage on this solution is that DNSoMatic offers the possibility of propagate DNS updates to thirth party DNSlike systems like OpenDNS, DynDNS, Change IP and other 27 more.

Dynamic DNS Update Script for DNSoMatic.com behind NAT

Thanks all for your solutions… with this solution DNS filtering option from OpenDNS gets open without client software.

gwicon.

Thanks alot for your great work .
the script is not working for me .
it seems there is something incorrect in my configurations .
Router os 3.22

the log shows the following info.

updating dynamic ip on dns  for host 1
user .......... y password ........
last ip

I wish you could help.

First of all, give me some information…
first check if your configuration works out of the router, i mean.
Did you created an acount on DNSoMatic.com?
Did you linked updates to the DNS dynamic service you want to update with dnsomatic?
did you test if you send an update manually or with a software client to DNSoMatic it propagates to the desired DNS service you want to update with?

Test this to ensure that we are in the correct way.

I have been trying to find the error with the script scince i had wrote my first message.
i have an account that is linked to opendns service and opendns updater is working fine for me without any problems.

till now i can say there is a problem in the following step :

# get the current IP address from the internet (in case of double-nat)
/tool fetch mode=http address="checkip.dyndns.org" src-path="/" dst-path="/dyndns.checkip.html"
:local result [/file get dyndns.checkip.html contents]

I had read the script carefully and found that it stops just at the mentioned step (detected by messages in the log file)

I got an idea .I copied the command in this step and past it in the new terminal .
after that tried the script and it reached to the final step which is :
DNSoMatic: host … updated on DNSoMatice with ip … .

If i changed the wan IP ,i had to manually run the mentioned step for the script to progress.

maybe a copy paste issue.
If the script works fine in terminal mode there is nothing to modify (i guess). I experienced some problems copying directly and pasting in script windows when using windows. I solved this copying the script from the web to wordpad save it as script.txt and then reopen an paste on script window.
can you try this?

To be honest .
I didn’t modifiy the script, and added the schedule to be updated every 10 mins.
Then i go to sleep . when i wake up i checked the log and changed the ip , and the surprise it is working as it is supposed.

Thanks a lot for your great work .

Ok! :open_mouth:
This script is a mix of other’s solutions adapted for my needs, nothing new…
Your thanks are for this forum!

see you.