This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can i setup dydns client on astaro box ?

hello, 

can i setup dyndns like client on astaro box ?
i don't find any post about this . . . 
Also . . . my astaro box take like 10 minute to boot completely.
it's a p4-1.7 512mo , 30G hd . . . 

thx in advance

  


This thread was automatically locked due to age.
  • intruder,

    have a look at
    http://docs.astaro.org/older_versions/ASL-V3.2/docs_v3/hacking/dyndns.tar.gz

    The configs are prepared for dyndns.org but can simply replaced by others
    (http://www.gusnet.cx/proj/ez-ipupdate/)

    read you
    o|iver  
  • thx, 
    i don't find way to d/l the file [:(]
    wget , ftp , lynx . . . what's the way to d/l some file directly on astato box.

    thx [:)]

      
  • Can you tell me how this script works? I cannot edit it!

    I'm looking for a script, that only updates the IP to dyndns.org, when the IP changes! (isn't it the ip-up that does this?)

    Otherwise for warranty reasons I would prefer to run the dyndns client on an extra machine...  
  • Hi, I use the "ddclient" perl-script, works fine.
    You just have to edit a few lines for dyndns.org, it's very simple. I wrote a modified start/stop/restart-script - if you're interested I can send you the complete ddclient-files with a short install-manual. 
  • Why don't you post it here (as far as possible) so everybody benefits from it!?  
  • You're right, here is my short manual:

    - download ddclient 3.6.2
    - copy ddclient,sample-etc_ddclient.conf and my script at the end of this post as sample-etc_rc.d_init.d_ddclient to your ASL-box (e.i. with WinSCP, but use the correct mode. in binary mode my script-content was currupt)

    - login onto your firewall (SSL), su root
    - cp ddclient /usr/sbin/ddclient
    - chmod 755 /usr/sbin/ddclient
    - cp sample-etc_ddclient.conf /etc/ddclient.conf
    - chmod 600 /etc/ddclient.conf
    - cp sample-etc_rc.d_init.d_ddclient /sbin/init.d/ddclient
    - chmod 755 /sbin/init.d/ddclient
    - joe /etc/ddclient.conf,change hostnames, logins, and passwords appropriately
    - cd /sbin/init.d/rc3.d
    - ln -s ../ddclient S89ddclient
    - to test this setup: /sbin/init.d/ddclient start


    sample-etc_rc.d_init.d_ddclient:

    #!/bin/bash
    #
    #  Copyright (C) 2003 *
    #

    PATH=/sbin:/bin:/usr/sbin:/usr/bin

    function usage() {

            echo "Usage: $0 [start|stop|restart]"
            exit 1
    }

    # no args
    [ $# -lt 1 ] && usage;

    PNAME="DynDNS Service"
    PROG="/usr/sbin/ddclient"

    ret_code=0

    case "$1" in
            (start)
                    echo ":: Starting $PNAME"
                    PID=`ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
                    if  [ ! -z "$PID" ] ; then
                            echo "   Already running"
                            ret_code=1
                    else
                            $PROG >/dev/null 2>&1 || ret_code=1
                    fi
            ;;
            (stop)
                    echo ":: Stopping $PNAME"
                    kill `ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`  || ret_code=1
            ;;
            (restart)
                    $0 stop || ret_code=1
                    $0 start || ret_code=1
                    echo -e "\033[33m\033[1m:: Restarting $PNAME\033[m"
            ;;
            (*)
                    echo Unknown command "$1" for script \""$0"\"
                    ret_code=1
            ;;
    esac
    /sbin/init.d/retcode $ret_code
    exit $ret_code; 
  • hello,

    i tried this, but it works only half. when i reboot my machine the ddclient starts and the ip update works. but if i login with putty and try to stop or restart the client i get the following:

    dehatgateway:/ # /sbin/init.d/ddclient stop
    :: Stopping DynDNS Service
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
    -> failed

    dehatgateway:/ # /sbin/init.d/ddclient restart   
    :: Stopping DynDNS Service
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
    -> failed
    :: Starting DynDNS Service
    -> ok
    :: Restarting DynDNS Service
    -> failed

    Has anyone an idea?? i want the script working full...

    another thing is that the ddclient stops working after 3-4 days. i dont get an ip update then! any ideas??

    Greetings
    Patrick  
  • why are you using ddclient in daemon mode and not having dhcpcd call an exe?