How to setup your own Free dynamic DNS


Setup Your own Free Dynamic DNS

First of all install ddclient, patch and IO::Socket::SSL perl library

apt-get install libio-socket-ip-perl patch

While installing ddclient it will ask for cofiguration so don`t fill that initally as we will config it manully.

Now fetch the cloudflare patch for ddclient from here

Copy ddclient (/usr/sbin/ddclient) binary and Patch to same folder and

patch < ddclient-3.8.1-cloudflare-30-10-2013.patch
After all patch are succesful copy and replace this binary back to /usr/sbin/ddclient

Now we create ddclient config file

nano /etc/ddclient.conf
and paste following cofiguration in it
protocol=cloudflare,                           \
use=web,,		\,                     \
login=<your-cloudflare-email-id>                          \
password=<API-KEY>              \			\, will be the domain pointed to your device.
change interface from ppp0 to whatever your public ip interface is.
you can get cloudflare api key from tour account info here
zone is the domain configured over cloudflare
Sub domain entry should be there before using ddclient to update it.To run ddclient run the following as superuser (root)
ddclient -daemon=0 -debug -verbose -noquiet

Now create a crontab as superuser (root)

crontab -e

and put following job in it

*/30 * * * * ddclient -daemon=0 -debug -verbose -noquiet

This will update or check for update every 30 minutes. If dynamic ip is changed IP pointing to your subdomain will be changed. You can set this interval to your choice.

Вашият коментар

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *

Този сайт използва Akismet за намаляване на спама. Научете как се обработват данните ви за коментари.