Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

  1. #1
    Join Date
    Oct 2005
    Location
    Milano, Italy
    Beans
    871
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Smile HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    As soon as you need that your PC will be reachable with the public IP address, you can setup a free dns service in order to reach your machine with a unique hostname upon the changes of the IP address from the ADSL connection.

    I'm reporting that http://freedns.afraid.org/ still offer the service for free (seems that the popular ones like No-IP or DynDNS don't provide their service for free anymore); here the steps to configure it automatically with inadyn, partially based on Ubuntu documentation https://help.ubuntu.com/community/DynamicDNS and https://help.ubuntu.com/community/DynamicDNS#inadyn

    First of all register your account on Freedns:
    http://freedns.afraid.org/menu/
    Freedns offer a bunch of domain names, from my taste the best ones (or the ones easy to remember) are:
    mooo.com
    ignorelist.com
    Assume that you register: <your_host>.ignorelist.com

    Install inadyn:
    Code:
    sudo apt-get install inadyn curl
    Open the url:
    http://freedns.afraid.org/dynamic/
    Login with your account
    Select the link Direct URL beside <your_host>.ignorelist.com
    Copy everything from the right of the ? in the address bar (alphanumeric string)

    Create configuration file of inadyn:
    Code:
    sudo gedit /etc/inadyn.conf
    And save this content:
    Code:
    --username <your_username>
    --password <your_password>
    --update_period 60000
    --forced_update_period 320000
    --alias <your_host>.ignorelist.com,alphanumeric string
    --background
    --dyndns_system default@freedns.afraid.org
    --syslog
    Add inadyn to crontab:
    Code:
    export EDITOR=gedit && sudo crontab -e
    Edit the file to add the following line:
    Code:
    @reboot /usr/sbin/inadyn
    Reboot your PC

    Wait 3 minutes

    Check if inadyn is running:
    Code:
    ps -A | grep inadyn
    Check inadyn behaviour:
    Code:
    more /var/log/messages |grep INADYN
    Check if your host is up:
    Code:
    ping <your_host>.ignorelist.com
    Done!
    ------------------------------------------------
    yep ”short and long URL„
    http://yep.it/
    ------------------------------------------------

  2. #2
    Join Date
    May 2009
    Location
    Dewsworld
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Many Many thanks for the post. It works great for me!

  3. #3
    Join Date
    Apr 2012
    Beans
    1

    Smile Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    yeah it works! now ill try it on my minimal ubuntu with only java and mono installed (i'm setting up a minecraft server)

  4. #4
    Join Date
    Dec 2007
    Location
    ur LHC leakin ur protons
    Beans
    87
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Thanks dentaku! It works!

    (but ... reboot your PC instead of just running the program? Seriously? )

  5. #5
    Join Date
    Jul 2012
    Beans
    1

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Hello all,

    I am setting up my first server, and I followed these directions for setting up inadyn. I'm still having an issue, and I'm trying to pinpoint it, and the only thing that didn't work is the second to last line of code, starting with "more". It just returns "no such file or directory," and since I'm not totally sure what I'm doing, I don't know if that's a problem or not. However, ps shows that it's running, and the ping seems to work fine, so should I be concerned, or is this not an issue?

    Thanks!

    PS. For reference, I'm using 12.04 on an old machine, and my attempts to ssh through the afraid.org address are failing. If this isn't the problem, I'm going to start a new thread asking questions about opening ports.

  6. #6
    Join Date
    Dec 2007
    Location
    ur LHC leakin ur protons
    Beans
    87
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Despite my chirpy post above I had some trouble too. Here's the config I ended up with:

    Code:
    fatman@nikko:~$ cat /etc/inadyn.conf
    --username notmyusername
    --password notmypassword
    --update_period_sec 7200
    --forced_update_period 21600
    --alias notmysubdomain.strangled.net,bm90bXliYXNlNjRjb2Rlbm9yZWFsbHlub3RteWJhc2U2NGNvZGU=
    --background
    --dyndns_system default@freedns.afraid.org
    --syslog
    Try replacing '--syslog' with '--verbose 5' and remove '--background'. That might give you some idea what's wrong.

    I seem to recall my problem was the hash after '--alias', double check you've got that right.

  7. #7
    Join Date
    Jul 2012
    Beans
    1

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Quote Originally Posted by Fatman_UK View Post
    Despite my chirpy post above I had some trouble too. Here's the config I ended up with:

    Code:
    fatman@nikko:~$ cat /etc/inadyn.conf
    --username notmyusername
    --password notmypassword
    --update_period_sec 7200
    --forced_update_period 21600
    --alias notmysubdomain.strangled.net,bm90bXliYXNlNjRjb2Rlbm9yZWFsbHlub3RteWJhc2U2NGNvZGU=
    --background
    --dyndns_system default@freedns.afraid.org
    --syslog
    Try replacing '--syslog' with '--verbose 5' and remove '--background'. That might give you some idea what's wrong.

    I seem to recall my problem was the hash after '--alias', double check you've got that right.
    I am having a similar issue as above, no log file, but process is running. Is the "alias" line supposed to look like...

    --alias www.somedomain.com,bm90bXliYXNlNjRjb2Rlbm9yZWFsbHl ub3RteWJhc2U2NGNvZGU= ?

    Or is it supposed to have the ".ignorelist.com" in there?

    Thanks!

  8. #8
    Join Date
    Aug 2012
    Beans
    1

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Code:
    INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
    INADYN:IP: Error '0x6e' resolving host name 'checkip.dyndns.org'
    W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
    W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
    I:INADYN: IP address for alias 'xxx.xxx.com' needs update to 'x.x.x.x'
    I:INADYN: Alias 'xxx.xxx.com' to IP 'x.x.x.x' updated successful.
    That's my log. Yes, x.x.x.x is what my router's current ip is. It says ip update successful, but when pinging, my subdomain still points to my router's old ip address. I had to log in to afraid.org to change the ip address. Any ideas?

  9. #9
    Join Date
    Aug 2012
    Beans
    3

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    Quote Originally Posted by TopherMan View Post
    Hello all,

    I am setting up my first server, and I followed these directions for setting up inadyn. I'm still having an issue, and I'm trying to pinpoint it, and the only thing that didn't work is the second to last line of code, starting with "more". It just returns "no such file or directory," and since I'm not totally sure what I'm doing, I don't know if that's a problem or not. However, ps shows that it's running, and the ping seems to work fine, so should I be concerned, or is this not an issue?

    Thanks!

    PS. For reference, I'm using 12.04 on an old machine, and my attempts to ssh through the afraid.org address are failing. If this isn't the problem, I'm going to start a new thread asking questions about opening ports.
    Thanks for this great tutorial! It works like a charm for freedns.afraid.org

    Try:

    Code:
    more /var/log/syslog |grep INADYN
    instead of:
    Code:
    more /var/log/messages |grep INADYN
    If gedit does not work use nano:
    Code:
    sudo nano /etc/inadyn.conf
    Code:
     export EDITOR=nano && sudo crontab -e
    Last edited by pedm; August 31st, 2012 at 01:10 PM.

  10. #10
    Join Date
    Aug 2012
    Beans
    3

    Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)

    To run inadyn every 5 minutes:
    Code:
    export EDITOR=nano && sudo crontab -e
    Add bellow @reboot /usr/sbin/inadyn :

    Code:
    # m h  dom mon dow   command
    @reboot /usr/sbin/inadyn
    */5 * * * * /usr/sbin/inadyn

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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