Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
New member
Joined
Jan 21, 2009
Messages
158
hi everyone !
im trying to find my inadyn script file to adjust my settings ?
but cant seem to find it anywhere? can someone point me in the right direction ?
i used to have a dm500 and i could find it easily but with a 600pvr it doesnt seem to be there?

i am using latest pli jade image , thanks in advance yu99
 
Respected Member
Joined
Sep 27, 2006
Messages
2,099
inadyn, opendns, and Ubuntu



I have been using DNS services from OpenDNS.org for a little while now, and I am very happy with some of the features that they provide such as URL shortcuts and finely grained internet filtering. However, in order to use the features, I have to keep my dynamic IP address up to date with their DNS-O-Matic service. Their list of clients includes inadyn, which is available through Ubuntu but doesn't include DNS-O-Matics ssl extensions and so I compiled my own version and installed it.

Here are the steps I followed:

  1. Download modified inadyn source code from OpenDNS -- wget http://www.opendns.com/support/ddns_files/inadyn.source.v1.99.zip
  2. Unzip the source code -- unzip inadyn.source.v1.99.zip
  3. sudo apt-get build-dep inadyn
  4. sudo apt-get install libcurl4-openssl-dev
  5. cd inadyn.source.v1.99
  6. make
  7. sudo cp -p bin/linux/inadyn /usr/local/sbin/.
  8. Create a script named inadyn in /etc/init.d so that it will launch automatically on startup.
    #! /bin/sh

    ### BEGIN INIT INFO
    # Provides: inadyn
    # Required-Start: $network
    # Required-Stop: $syslog
    # Should-Start: $named $syslog
    # Should-Stop: $syslog $network
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Dynamic IP Adress updater
    # Description: inadyn is a program that updates services such as
    # dyndns.org and dnsomatic.com when the host's external
    # external IP address changes.
    ### END INIT INFO

    set -e

    # /etc/init.d/inadyn: start and stop the inadyn daemon

    DAEMON=/usr/local/sbin/inadyn
    INADYN_ENABLE=true
    INADYN_OPTS=''
    INADYN_CONFIG_FILE=/etc/inadyn.conf

    test -x $DAEMON || exit 0

    . /lib/lsb/init-functions
    . /etc/default/rcS

    export PATH="${PATH:+$PATH:}/usr/sbin:/sbin:/usr/local/sbin"

    case "$1" in
    start)
    if "$INADYN_ENABLE"; then
    log_daemon_msg "Starting inadyn daemon" "inadyn"
    if [ ! -s "$INADYN_CONFIG_FILE" ]; then
    log_failure_msg "missing or empty config file $INADYN_CONFIG_FILE"
    log_end_msg 1
    exit 1
    fi
    if start-stop-daemon --start --quiet \
    --pidfile /var/run/inadyn.pid --make-pidfile\
    --exec $DAEMON
    then
    rc=0
    else
    rc=1
    fi
    if [ $rc -eq 0 ]; then
    log_end_msg 0
    else
    log_end_msg 1
    fi
    else
    if [ -s "$INADYN_CONFIG_FILE" ]; then
    [ "$VERBOSE" != no ] && log_warning_msg "inadyn daemon not enabled in /etc/init.d/inadyn, not starting..."
    fi
    fi
    ;;
    stop)
    log_daemon_msg "Stopping inadyn daemon" "inadyn"
    start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
    log_end_msg $?
    ;;
    restart)
    set +e
    if $INADYN_ENABLE; then
    log_daemon_msg "Restarting inadyn daemon" "inadyn"
    start-stop-daemon --stop --quiet --oknodo --exec $DAEMON || true
    sleep 1
    if start-stop-daemon --start --quiet \
    --pidfile /var/run/inadyn.pid --make-pidfile \
    --exec $DAEMON
    then
    rc=0
    else
    rc=1
    fi
    if [ $rc -eq 0 ]; then
    log_end_msg 0
    else
    log_end_msg 1
    fi
    else
    [ "$VERBOSE" != no ] && log_warning_msg "inadyn daemon not enabled in /etc/default/inadyn, not starting..."
    fi
    ;;

    *)
    echo "Usage: /etc/init.d/inadyn {start|stop|restart}"
    exit 1
    esac

    exit 0<LI style="FONT-FAMILY: courier new">sudo update-rc.d -f inadyn defaults
  9. Create an inadyn.conf file in /etc
    background
    syslog

    update_period_sec 600 # Check for a new IP every 600 seconds
    secure

    # Enter your DynDNS username and password here
    username <USERNAME GOES HERE>
    password <PASSWORD GOES HERE>

    # What kind of host is being updated? Choices are [email protected], [email protected], [email protected]
    dyndns_server_name updates.dnsomatic.com
    dyndns_server_url /nic/update?
    alias <DNS-O-Matic SERVICE 1 GOES HERE>
    alias <DNS-O-Matic SERVICE 2 GOES HERE>
  10. /etc/init.d/inadyn start
  11. all done inadyn is now installed and will keep DNS-o-Matic apprised of you IP address.
 
New member
Joined
Jan 21, 2009
Messages
158
thankyou Predator! i am using no-ip
i have a made a pc server with linux and installed inadyn no problem.

i want to install this on dm600pvr with pli jade,
i have downloaded the inadyn as a plugin and the cfg file.

but i cannot find the cfg file when i use Dcc ?

as far as the script is concerned on the server i built i used these settings .

#!/bin/sh
DAEMON=/bin/inadyn
NAME=inadyn
DESC="InaDyn dynamic DNS Client"
INADYN_ON=1
[email protected]
INADYN_PASSWORD=xxxpass
INADYN_ALIAS=xxxxxx.no-ip.info
UPDATE_PERIOD=900000
LOG_FILE_ON=1
LOG_NAME=/var/log/inadyn.log
DYN_SYSTEM_ON=1
[email protected]

test -f $DAEMON || exit 0
set -e
case "$1" in
start)
if [ $INADYN_ON -ne 0 ]; then
ARGS="-u $INADYN_USERNAME -p $INADYN_PASSWORD -a $INADYN_ALIAS --update_period $UPDATE_PERIOD"
if [ $LOG_FILE_ON = 1 ]; then
ARGS="$ARGS --log_file $LOG_NAME"
fi
if [ $LOG_FILE_ON = 2 ]; then
ARGS="$ARGS --syslog"
fi
if [ $DYN_SYSTEM_ON -ne 0 ]; then
ARGS="$ARGS --dyndns_system $DYN_SYSTEM"
fi
echo -n "starting $DESC: $NAME... "
start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
echo "done."
fi
;;
stop)
echo -n "stopping $DESC: $NAME... "
start-stop-daemon -K -n $NAME
[ -e $LOG_NAME ] && rm -rf $LOG_NAME
echo "done."
;;
restart)
echo "restarting $DESC: $NAME... "
$0 stop
$0 start
echo "done."
;;
reload)
echo -n "reloading $DESC: $NAME... "
killall -HUP $(basename ${DAEMON})
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
;;
esac
exit 0​


i want to use this as a 2nd server in a my box .​

thanks ...

also is there a problem running my linux server and the dm as a server on the same adsl line ? i will change the port of the dm from 12000 to a different port .​
 
Top