Dynamic DNS


There are few free dynamic DNS options such as

  • dnsdynamic.org
  • freedns.afraid.org
  • ydns.eu
  • dtdns.com
  • duckdns.org
  • noip.com

Install ddclient.

emerge -av net-dns/ddclient

Let’s focus on freedns.afraid.org. Open an account and pick a domain name.

Prepare config file

nano -w /etc/ddclient/ddclient.conf

Enter information on the subdomain name you just created.

daemon=3600
syslog=yes
protocol=freedns
use=if, if=eth0
ssl=yes
use=web, web=myip.dnsomatic.com
server=freedns.afraid.org
login=userID
password='password'
XXXXXX.mooo.com

Start and add ddclient to boot

/etc/init.d/ddclient start
rc-update add ddclient default

Alternatively you could use cron job with url given at http://freedns.afraid.org/dynamic/

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

0,5,10,15,20,25,30,35,40,45,50,55 * * * * sleep 34 ; wget -O - http://freedns.afraid.org/dynamic/update.php?aXXXXXXXXXXXXXXXXXXXXXX >> /tmp/freedns_XXXXX_mooo_com.log 2>&1 &

Comments are closed.