Results 1 to 3 of 3

Thread: How to update DynDNS behind a modem

  1. #1

    How to update DynDNS behind a modem

    When you use a cable or DSL modem, the WL500 usually doesn't know its external IP address. This is a problem for the built-in DynDNS client (accessible through the web pages), because that client requires the address for updating DynDNS.

    Luckily, DynDNS provides an alternative solution that does work and it's called inadyn. This page describes how to use inadyn for updating your DynDNS record.

    You will need ipkg for installing it (see http://www.sprayfly.com/wiki/Ipkg), but otherwise it's pretty straightforward.

    Download inadyn from the unslung library using ipkg.

    [admin@asus root]$ ipkg install inadyn

    For your reference, my ipkg configuration file (/opt/etc/ipkg.conf) looks as follows:

    Code:
    src wl500g http://wl500g.dyndns.org/ipkg
    src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
    dest root /opt
    Note that /opt is my USB harddisk.

    The result can be shown by:

    Code:
    [admin@asus root]$ ipkg files inadyn
    Package inadyn (1.96.2-1) is installed on root and has the following files:
    /opt/man/man5/inadyn.conf.5
    /opt/bin/inadyn
    /opt/share/doc/inadyn/readme.html
    /opt/man/man8/inadyn.8
    Successfully terminated.
    Create a configuration file /opt/etc/inadyn.conf

    Code:
    username yourusername
    password yourpassword
    alias whatever.you.use.com
    background  # run in background mode
    syslog  # Log to syslog
    update_period_sec 1600  # Check every x seconds
    Add the executable to the end of a startup script (one that is executed after the drive is mounted). I added the following line to /usr/local/sbin/post-mount:

    Code:
    /opt/bin/inadyn --input_file /opt/etc/inadyn.conf
    Save the script:

    Code:
    flashfs save
    flashfs commit
    That's it.

  2. #2
    Quote Originally Posted by SuperB View Post
    When you use a cable or DSL modem, the WL500 usually doesn't know its external IP address. This is a problem for the built-in DynDNS client (accessible through the web pages), because that client requires the address for updating DynDNS.

    Luckily, DynDNS provides an alternative solution that does work and it's called inadyn. This page describes how to use inadyn for updating your DynDNS record.

    You will need ipkg for installing it (see http://www.sprayfly.com/wiki/Ipkg), but otherwise it's pretty straightforward.

    Download inadyn from the unslung library using ipkg.

    [admin@asus root]$ ipkg install inadyn

    For your reference, my ipkg configuration file (/opt/etc/ipkg.conf) looks as follows:

    Code:
    src wl500g http://wl500g.dyndns.org/ipkg
    src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
    dest root /opt
    Note that /opt is my USB harddisk.

    The result can be shown by:

    Code:
    [admin@asus root]$ ipkg files inadyn
    Package inadyn (1.96.2-1) is installed on root and has the following files:
    /opt/man/man5/inadyn.conf.5
    /opt/bin/inadyn
    /opt/share/doc/inadyn/readme.html
    /opt/man/man8/inadyn.8
    Successfully terminated.
    Create a configuration file /opt/etc/inadyn.conf

    Code:
    username yourusername
    password yourpassword
    alias whatever.you.use.com
    background  # run in background mode
    syslog  # Log to syslog
    update_period_sec 1600  # Check every x seconds
    Add the executable to the end of a startup script (one that is executed after the drive is mounted). I added the following line to /usr/local/sbin/post-mount:

    Code:
    /opt/bin/inadyn --input_file /opt/etc/inadyn.conf
    Save the script:

    Code:
    flashfs save
    flashfs commit
    That's it.
    Thanks for a great tutorial! Just bought my WL-500Gpv2 and is working on setting it up with Oleg's great firmware. Of course one of the first things I thought about was how to get "visible" to the rest of the world, the WL500 being behind another router. Inadyn does the job perfectly!
    One thing though:
    inadyn installed to /opt/opt/bin instead of /opt/bin (my HDD is also mounted on /opt), witch is not a big problem, I just had to change the .conf file, but just thought I would let you know

    Cheers
    Gydi

  3. #3
    If you use the renewed Oleg's firmware from http://code.google.com/p/wl500g/ inadyn is already installed.

    I have done the following steps:

    Deactivate the DDNS-Service in the web-interface if it is activated.

    Create the config file /opt/etc/inadyn.conf as described in post #1.

    If you have set up your router with wengis HOWTO you can do the following to start up inadyn:

    Create the file /opt/etc/init.d/S22inadyn
    Code:
    #!/bin/sh
    
    if [ -n "`pidof inadyn`" ]; then
       /usr/bin/killall inadyn 2>/dev/null
    fi
    
    /usr/sbin/inadyn --input_file /opt/etc/inadyn.conf
    Make it executable
    Code:
    chmod +x /opt/etc/init.d/S22inadyn

Similar Threads

  1. Update NoIp, DynDNS, dyn.ee, ipactive via script
    By rj.2001 in forum WL-500g/WL-500gx Tutorials
    Replies: 9
    Last Post: 04-01-2011, 16:48
  2. Maintainin multiple dyndns accounts from wl500g.
    By ikerstges in forum WL-500g/WL-500gx Tutorials
    Replies: 9
    Last Post: 21-03-2008, 21:12
  3. how to update 'ipkg.sh update' ?thx
    By sharkman2008cn in forum WL-500gP Q&A
    Replies: 2
    Last Post: 23-10-2007, 10:08
  4. WL-500gP met gehacked Speedtouch Home modem van Planet
    By perry230 in forum Dutch Discussion - Nederlands
    Replies: 7
    Last Post: 08-09-2006, 14:37

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •