NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
bnichols
Apr 25, 2009Guide
DNS-O-Matic add-on
Am just trying Super Poussin's new DNS-O-Matic add-on. Installed, disabled, modified the dnsomatic file and restarted the service. There doesn't seem to be a way to confirm that it's working. If I log into my account on the dnsomatic website, it just sits there saying "Waiting for first update" for both my dyndns and opendns account. Any way to confirm its proper installation and usage?
Thanks!
PS I forgot to mention I installed the 1.1 version that was updated a few hours ago (from 1.0 early this morning).
Thanks!
PS I forgot to mention I installed the 1.1 version that was updated a few hours ago (from 1.0 early this morning).
103 Replies
Replies have been turned off for this discussion
- yachtmanAspirantHeretoday, I had the identical results in my log. Changed my path in settings.json (put the exact path) and it worked. I did not investigate the permissioning.
- HereTodayAspirantyachtman,
Thanks for the response. One follow on question - where is the settings.json file? I haven't heard of this one before. - yachtmanAspirantHereToday,
My mistake. Settings.json is used for Transmission (have too many config files in my head). The config file for DNS-O-Matic (which I think you already know) is:
#/c/addons-scripts/DnsOMatic/dnsomatic
Here is mine (unedited sections removed):titanium:/c/addons-scripts/DnsOMatic# cat dnsomatic
#!/bin/bash
HOSTNAME="all.dnsomatic.com"
USER="..."
PASS="..."
.....
#IP=$(`which curl` -s http://myip.dnsomatic.com/)
IP=$(/usr/local/bin/curl -s http://myip.dnsomatic.com/)
#IP=$(curl -s http://myip.dk/ | egrep -m1 -o '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}')
.....
RETURN=$(/usr/local/bin/curl -k -s https://${USER}:${PASS}@updates.dnsomatic.com/nic/update?hostname=${HOSTNAME}&myip=$IP&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG)
.....
But make sure that the locations above are the actual locations for 'curl'. You can do a '#which curl' for it. I can't figure out why super-poussin's original code didn't work for me, but the mod made it goo. - super_poussinVirtuosoytachman
if you do this in command line :
IP=$(`which curl` -s http://myip.dnsomatic.com/)
echo $ IP
what is the result ? - yachtmanAspirantsuper-poussin,
The command results in my correct ip.
However, if I modify the script with the following additional lines, the log results reveal that the commands don't seem to get the path from within the script?
#/c/addons-scripts/DnsOMatic/dnsomaticIP=$(`which curl` -s http://myip.dnsomatic.com/)
IP2=$(/usr/local/bin/curl -s http://myip.dnsomatic.com/)
WI=$('which curl')
echo $IP ": = IP address with which curl" >> $LOGFILE
echo $WI ": = which curl path" >> $LOGFILE
echo $IP2 ": = IP with full path" >> $LOGFILE
From the logfile:: = IP address with which curl
: = which curl path
218.186.45.146 : = IP with full path - super_poussinVirtuosook will publish a 2.0 with fixed path
- HereTodayAspirantyacthman,
That did the trick. I also ran the code you had and saw the same thing...the path wasn't getting passed to the variable even though the location was correct from the #which curl command.
super-poussin,
Great add-on. One which I will definitely upgrade to 2.0 once released. I also plan to donate. Thank you for your hard work on this one. - super_poussinVirtuoso2.0 is out :)
- cmcloughlinAspirantHi
I'm new with the readyNAS so please forgive my ignorance.
I have downloaded and installed the DNS-O-Matic addon and toggled SSH. I also have installed PuTTy on my Vista PC. However, I have not been able to log into mt ReadyNAS Duo to edit the /addons-scripts/DnsOMatic/dnsomatic file to add my user name and password.
Could someone please post a step by step idiots guide to this process for me as a complete newbie to anything linux based.
If there already is one please give me a link as my searches have been unsucessful
Thanks in advance - secret_rivalsAspirantHi,
I have the Dns-O-Matic addon installed and it isn't updating to the dns-o-matic severs. Where do I find the dns-o-matic logs on the ReadyNAS so I can find out where it is failing? Do any ports need to be opened on a firewall, I persume it sends updates out over port 80.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!