where to put dyndns-script?

hello,

i´m not that crack and wondering where to put a little script into /var/chroot-pppoe/...../ip-up the automatically refresh my dynamic dns on refreshing ppp0.

thanks for help!

seb
Parents
  • not really hacking... installed the pluspack and compiled ez-ipupdate. works fine from shell "run by man" - but now i´m looking for the place where to put the script to execute it automatically on if-up ppp0 after hungup...
  • hi seb,

    have a look at /var/chroot-pppoe/etc/ppp - there's a ip-up-script you can use.
    if it not works you should add your script to the /var/chroot-pppoe/bin/DSL.sh script.

    by the way ... i prefer using the ddclient 3.6.2, because it's just PERL and offers more features.
    You can run it as deamon, which detects IP changes, no need to modify a ASTARO Script. Have a look at it.

    Hope this helps you.
  • thanks for your answer. i´ve already figured out th eip-up-script. looks very very familiar to roaring penguin´s pppoe ;-) but i don´t know exactly where to put my little skript into ip-up. all these ifs and so on :-o

    ddclient sounds good, but i´ve heard that there are some problems with daemons and the middleware? would you mind posting a little howto setup the daemon? would be nice.

    thanks,

    seb
  • hi seb,

    its very easy to install ddclient. it comes with several sample scripts.
    so first read the  README and give yourself a try ;-).

    if you then have a concrete problem i will try to help you.
  • i just set up ddclient - but how do i tell the app to use ppp0 to get an ip?

    pls send me some private mail - seb@freitag.ch

    thanks!
  • hi seb,
    sorry - not by private email - for sharing information with others.

    1. Install ddclient 3.6.2 in /usr/sbin (maybe you will create a chroot later)
    2. copy the sample-etc_ddclient.conf to /etc/ddclient.conf
    3. check your ppp connection is active
    4. enter "ifconfig" to get name of ppp interface (it should be ppp0)
    5. edit your ddclient.conf via joe (joe /etc/ddclient.conf)
    6. uncomment the "use=if" line and change the if=eth0 value to if=ppp0
    7. enter "ddclient -daemon=0 -debug -verbose -noquiet" for testing

    this should work !

    here is a example conf for dyndns accounts:

    daemon=300   # check every 300 seconds
    syslog=yes   # log update msgs to syslog
    mail=root    # mail update msgs to root
    pid=/var/run/ddclient.pid # record PID in file.

    use=if, if=ppp0   # via interfaces

    protocol=dyndns2  # default protocol
    server=members.dyndns.org  # default server
    login=myloginname  # default login
    password=myprivate # default password

    server=members.dyndns.org,              \
    protocol=dyndns2                        \
    me.dnsalias.net  # dyndns name for my astaro
Reply
  • hi seb,
    sorry - not by private email - for sharing information with others.

    1. Install ddclient 3.6.2 in /usr/sbin (maybe you will create a chroot later)
    2. copy the sample-etc_ddclient.conf to /etc/ddclient.conf
    3. check your ppp connection is active
    4. enter "ifconfig" to get name of ppp interface (it should be ppp0)
    5. edit your ddclient.conf via joe (joe /etc/ddclient.conf)
    6. uncomment the "use=if" line and change the if=eth0 value to if=ppp0
    7. enter "ddclient -daemon=0 -debug -verbose -noquiet" for testing

    this should work !

    here is a example conf for dyndns accounts:

    daemon=300   # check every 300 seconds
    syslog=yes   # log update msgs to syslog
    mail=root    # mail update msgs to root
    pid=/var/run/ddclient.pid # record PID in file.

    use=if, if=ppp0   # via interfaces

    protocol=dyndns2  # default protocol
    server=members.dyndns.org  # default server
    login=myloginname  # default login
    password=myprivate # default password

    server=members.dyndns.org,              \
    protocol=dyndns2                        \
    me.dnsalias.net  # dyndns name for my astaro
Children