hey guys, check out
Afraid.org if you need a dynamic IP domain. People share their domains and it's run by a freemium model.
It's essentially dynDNS with a lot of other stuff but for nerds. Not Necessarily only for dynamic IPs
you can manipulate CNAME, A, AAAA, MX, NS, TXT, LOC, RP, HINFO, SRV records
There is also support for IP6.
of course you will need a way to update the servers with your new IP. I personally use inadyn for this.
http://www.inatech.eu/inadyn/
It's a neat deamon written in C.
here's an example config script for inadyn:
--username pygar
--password yeahright
--update_period 60000
--forced_update_period 320000
--alias pygar.chickenkiller.com,VDhiR0_NOTMYREALSTRING_NOTMYREALSTRING_ODU=
--background
--dyndns_system [email protected]
--syslog
--log_file /path/to/inadyn.log
i save this as inadyn.conf
and run the daemon:
./inadyn --input_file /path/to/inadyn.conf
if you've installed inadyn from the repos you obviously don't need the './' bit as it will already be in $PATH
your authentication string is found under the 'Dynamic DNS' submenu, in the 'Direct URL' URL (copy everything after the '?')
with this pygar.chickenkiller.com resolves to my dynamic IP. You can register for other domains on their website (through the subdomains submenu).
check inadyn.log for success or failure.
putting it in crontab
to launch inadyn and boot put this in crontab (EDITOR=vim crontab -e)
@reboot /path/to/execuatable/inadyn --input_file /path/to/inadyn.conf
to check if it's running every ten minutues, also put this in crontab (save it as inadyn.check).
#!/bin/bash
PROCESSCOUNT=$(ps -ef |grep -v grep |grep -cw inadyn)
echo $PROCESSCOUNT
if [ $PROCESSCOUNT -eq 2 ]
then
/path/to/exec/inadyn --input_file /path/to/inadyn.conf
else
echo "good";
fi
with
*/10 * * * * /path/to/inadyn.check
Comments
i just run it on bootup. hasn't gone down since (12 days). It is C after all .
I put this in crontab (EDITOR=vim crontab -e)
@reboot /path/to/execuatable/inadyn --input_file /path/to/inadyn.conf
save this as inadyn.check (permisison +X and 777 (or whatever makes you comfortable)):
and in crontab (EDITOR=vim crontab -e):
this will check the daemon every 10 minutes; change it to whatevr you want.
... is the amount of time it waits before sending another update to inadyn? I also see that you've made the cron part of your post much clearer, thanks for clearing that up! Sorry for any confusion I caused