How to use ddclient with Namecheap

I just recently posted an article on using ddclient with No-IP for dynamic DNS updates. Having just signed on with Namecheap recently (because they really are a lot cheaper than their competitors), I found out that their dynamic DNS service also supportsddclient.

Everything is pretty simple so here’s how we do it. The first thing you’ll need to do is install ddclient as in the following command.

sudo apt-get install ddclient

Once that’s done you’ll need to open up the configuration file with a text editor.

sudo nano /etc/ddclient.conf

And lastly you’ll want to add the following to it.

use=web, web=checkip.dyndns.com/, web-skip='IP Address'

protocol=namecheap
server=dynamicdns.park-your-domain.com
login=your_domain.com
password=your_password
@

The first line in the config tells ddclient that it needs to use a website to fetch your machine’s external IP address, since this is what we want to update our DNS record to. The block after that tells it the information that it needs to connect to Namecheap. Nowyour_domain.com will be the name of your domain that you’re updating and your_password will be the password that Namecheap gave you (you get this once you enable Dynamic DNS updates in their user interface). Lastly the @ symbol specifies which DNS record under your_domain.com you want to update. In this case @ means the domain itself, so your_domain.com will get updated. If I wanted to update the record for www.your_domain.com I’d just replace the @ symbol with www.

After that’s done, save the file and then restart ddclient.

sudo service ddclient restart

And there you go, within a few minutes ddclient should initiate a dynamic DNS update with No-IP. If things don’t appear to be working correctly then open up /var/log/syslog (this is where ddclient logs to by default) and you should see any messages/errors that it has logged.

  • Brando

    thank you for this! didn’t include the line server=dynamicdns.park-your-domain.com and everything is working just fine..any idea what that line is?

  • coreylight

    Thanks!