ddclient for dynamic DNS on Ubuntu 14.04

STEP 1

Install ddclient

sudo apt-get install ddclient

If you are changing DNS service provider, just reconfigure ddclient

sudo dpkg-reconfigure ddclient

 

STEP 2

Enter required fields. I’m using dynu.com

Dynamic DNS service provider: others
Dynamic DNS server: api.dynu.com
Dynamic DNS update protocl: dyndns2
Username for dynamic DNS service: your-user-name
Password for dynamic DNS service: password
Network interface used for dynamic DNS service: ethx
DynDNS fully qualified domain names: xxx.dynu.com

 

STEP 3

Let’s make it more secure by using SSL

sudo apt-get install ssh libio-socket-ssl-perl
sudo nano /etc/ddclient.conf
protocol=dyndns2
#use=if, if=eth1
use=web, web=ipv4.kim.sg/, web-skip='IP Address'
server=api.dynu.com
login=xxxxxxxxx
password='xxx'
xhostnamex.dynu.com
daemon=600
ssl=yes

 

STEP 4

Run ddclient as daemon. Simply changeĀ run_daemon=false to true

sudo vim -c '%s/run_daemon=\"false\"/run_daemon=\"true\"/gc' -c 'wq' /etc/default/ddclient

 

Troubleshooting:

sudo ddclient -daemon=0 -debug -verbose -noquiet | less

Check your current DNS servers

cat /etc/resolv.conf

Remove/purge all of the previous install attempts:

sudo apt-get remove --purge ddclient

Restart ddclient daemon

sudo service ddclient restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top