What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Custom DDNS Issue

Tanner Harman

Occasional Visitor
Hi, I am trying to create a custom DDNS script that will report the External IP address but I seem to be running into problems. Here is the Script I've put below.

#!/bin/sh

USER="Username"

PASS="Password"

HOST="www.safedns.com"


# Should be no need to modify anything beyond this point

IP=$(wget -O - -q https://www.safedns.com/nic/update)

logger "Retrieved External IP: $IP"


border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;padding:0in">RESULT=$(/usr/sbin/curl -k --silent " https://username:[email protected]/nic/update?hostname=home
padding:0in">=$IP")

logger "Results: $RESULT"


if [[ ${RESULT:0:4} == 'good' ]]

then

/sbin/ddns_custom_updated 1

else

/sbin/ddns_custom_updated 0

fi


Here is a link to the API for this specific DNS Provider. I'm not sure if there is something wrong with the script or if I've got something wrong with the credentials. The Username & Password are correct, I can affirm that.

https://www.safedns.com/nicupdate

This is the log I get from the System

Mar 29 00:26:41 rc_service: watchdog 442:notify_rc start_ddns
Mar 29 00:26:41 custom script: Running /jffs/scripts/ddns-start (args: 192.168.0.114)
Mar 29 00:27:11 watchdog: start ddns.

It just repeats itself over & over.

Thanks in advance for any potential help.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top