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.
  • 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.
  • 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
  • As I am a home user I have no support anyway. 

    I have tried all the other possibilities. I need a immediate dyndns update, so it must be on the astaro box as it is the only one that know about the state of the external line. Maybe I could run a second ez-ipupdate process but this is not a nice solution. What if I need a third or fourth dns name?

    Markus
  • What do you mean by "immediate"? You could run the check for a ip change every minute.

    ddclient is not limited - you could AFAIK even update different dyndns providers.

    techno.kid
  • immediate means at once :-)

    If I let ddclient run every minute, it generates some load on the server and even may be 59 seconds late...

    The pppoe_updown script would be the natural place for this, as it is executed exactly when the interface comes up and the dyndns update is needed.
  • * You should only use cron for 'ddclient' to update your dyn.dns provider about once a month or so, to keep account active.  I almost have to laugh at running cron once every 5 minutes, or even less God forbid.

    SOLUTION:

    As far as updating your accounts IMMEDIATELY using 'ddclient', if you are using "dhcpcd" or "dhcp" clients to fetch/renew your IP lease, then it's simple to do and IMMEDIATE.  Check the 'README' file for that information, I won't repeat it here, but it's rather simple procedure.

    For me, dyndns.org will deactivate my account after 28 days without updating, so I use cron to do this once every 24 days.  My IP gets renewed/released about once every 6 hours, but the dhcp server releases me the same IP over and over so running cron is necessary.
  • Hi toobooku,

    running ddclient every 5 minutes does not imply that it will update the ip address every time at e.g. dyndns.org.
    My provider does povide me always a new ip address when I was disconnected so I do not have to watch out for the 28 days "timeout" :-)

    techno.kid