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 ...
sergiosat
May 24, 2009Aspirant
I found the trick for the Duo:
- In general the cron environment is not the same as the shell environment, therefore some paths in the cron environment are not set as the normal shell.
- In this case the path to launch "curl" command is not set and the command does not work
- In order to have the curl command correctly in the script is mandatory to add the path before the curl command
- Changing the line:
IP=$(curl -s http://myip.dnsomatic.com/)
in
IP=$(/usr/local/bin/curl -s http://myip.dnsomatic.com/)
and
RETURN=$(curl -k -s https://${USER}:${PASS}@updates.dnsomatic.com/nic/update?hostname=${HOSTNAME}&myip=$IP&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG)
in
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)
is enough to have the script correctly working on the Duo.
I kindly ask super-poussin to update the addon.
Hope the above is of any help.
Regards
Sergio
- In general the cron environment is not the same as the shell environment, therefore some paths in the cron environment are not set as the normal shell.
- In this case the path to launch "curl" command is not set and the command does not work
- In order to have the curl command correctly in the script is mandatory to add the path before the curl command
- Changing the line:
IP=$(curl -s http://myip.dnsomatic.com/)
in
IP=$(/usr/local/bin/curl -s http://myip.dnsomatic.com/)
and
RETURN=$(curl -k -s https://${USER}:${PASS}@updates.dnsomatic.com/nic/update?hostname=${HOSTNAME}&myip=$IP&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG)
in
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)
is enough to have the script correctly working on the Duo.
I kindly ask super-poussin to update the addon.
Hope the above is of any help.
Regards
Sergio
Related Content
NETGEAR Academy

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