Setting up ddclient on debian

I followed this to setup my namecheap ddclient:

So i’ve installed ddclient:

apt-get install ddclient

Then configured it:

nano /etc/ddclient.conf


use=cmd, cmd=/root/

Save and exit the file

Restart ddclient service using the following command

/etc/init.d/ddclient restart

But I was getting error saying that my ddclient was unable to obtain IP address.

To fix that I have created a script to fetch my public IP address:



curl -s|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

saved it and made it executable

chmod +x ./

Next step is to modify the ddclient config:

nano /etc/ddclient.conf

and added this line:

use=cmd, cmd=/root/

Restarted ddclient and run:

 ddclient -daemon 0 -debug -verbose -noquiet

and make sure all is looking good.

Leave a Reply

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

one + two =

This site uses Akismet to reduce spam. Learn how your comment data is processed.