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!
Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)
Many Many thanks for the post. It works great for me!:guitar:
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)
Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)
Thanks dentaku! It works! :D
(but ... reboot your PC instead of just running the program? Seriously? :P )
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.
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.
Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)
Quote:
Originally Posted by
Fatman_UK
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!
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?
Re: HOWTO Configure Freedns (afraid.org) service with Inadyn (Lucid)
Quote:
Originally Posted by
TopherMan
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
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