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

multiple dyndns updates - possible solution?

Hi there,

I need to update multiple dyndns addresses, not only one. So the new feature of V5 does not help me there. I modified the script /var/chroot-pppoe/etc/ppp/pppoe_updown.sh (see below). This was working perfectly in V4, but fails in V5. Anybody could help me there? Or maybe this is a bad idea?

Markus

the tail of /var/chroot-pppoe/etc/ppp/pppoe_updown.sh:

if test $ACTION = "add" ; then
        logger -p daemon.info "DSL $TTY : Local IP: $IPLOCAL Remote IP: $IPREMOTE"
        echo "\tright=$IPLOCAL" >/etc/PPP_IPs
        echo "\trightnexthop=$IPREMOTE" >>/etc/PPP_IPs
        echo "$ACTION $ITF $PPPITF \"$USERNAME\" \"$PASSWORD\" $SYMNAME" >>/tmp/pppoe

        # Update dyndns ip, added by MTR 08-10-2003
        CONFDIR=/etc/ez-ipupdate
        CONFFILES=$(ls ${CONFDIR}/*.conf)
        if [ x"$CONFFILES" = x ]; then
                logger -p daemon.err -t ez-ipupdate -i "No config file in ${CONFDIR}"
        else
                for CONF in $CONFFILES; do
                        sleep 5
                        HOST=$(awk -F\# '{print $1}' $CONF | grep 'host=' | awk -F= '{print $2}')
                        IFACE=$(awk -F\# '{print $1}' $CONF | grep 'interface=' | awk -F= '{print $2}')
                        if test $IFACE = $PPPITF; then
                                logger -p daemon.err -t ez-ipupdate -i "Updating DynDNS ip address ${IPLOCAL} for host ${HOST} on ${IFACE}"
                                /usr/sbin/ez-ipupdate -c $CONF -a $IPLOCAL 2>&1 | logger -p daemon.err -t ez-ipupdate -i
                        fi
                done
        fi
        # End Update dyndns

elif test $ACTION = "delete" ; then
        echo "$ACTION $SYMNAME" >>/tmp/pppoe
fi


A typical conf file /var/chroot-pppoe/etc/ez-ipupdate/xx.dnsalias.org.conf:

service-type=dyndns
user=user[:P]wd
host=xx.dnsalias.org
#mx=
interface=ppp0
cache-file=/etc/ez-ipupdate/xx.dnsalias.org.cache
retrys=10
max-interval=2073600
#notify-email=
period=60


This thread was automatically locked due to age.
Parents
  • If you are not bound to the ASL solution you could use another client.

    For me "ddclient" worked as well in ASL4 as in ASL5 for more than one dynamic domain.
    But: instead of running ddclient in daemon mode, which crashed sometimes, I have it run by cron every 5 minutes...

    techno.kid
Reply
  • If you are not bound to the ASL solution you could use another client.

    For me "ddclient" worked as well in ASL4 as in ASL5 for more than one dynamic domain.
    But: instead of running ddclient in daemon mode, which crashed sometimes, I have it run by cron every 5 minutes...

    techno.kid
Children
No Data