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
  • you know that you voite your support of astaro? in v5 no hacking is welcome. also i am not shure it´s possible, because the v5 is database based, v5 was list based.

    is it not possible to sync two accounts e.g. dyndns.org?

    other idea is to modify your own dns-zonefile and set a CNAME to your dyndns host.
Reply
  • you know that you voite your support of astaro? in v5 no hacking is welcome. also i am not shure it´s possible, because the v5 is database based, v5 was list based.

    is it not possible to sync two accounts e.g. dyndns.org?

    other idea is to modify your own dns-zonefile and set a CNAME to your dyndns host.
Children
No Data