A while back I wrote a tutorial on setting up No-IP’s dynamic DNS client on Debian, which is kind of a chore. Anyway recently I found that you can use ddclient, a dynamic DNS client included in the Debian repositories, to update your No-IP domains. Obviously the advantage to using ddclient is that the package is maintained on a regular basis and gets updated with aptitude like all the other packages on a Debian installation unlike No-IP’s client where you have to download a new package every time and build it manually.
So let’s get started. 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=dyndns2 server=dynupdate.no-ip.com login=your_username password=your_password your_domain.com
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 No-IP. Obviously replace your_username and your_password with your No-IP credentials and then replace your_domain.com with the name of your domain that you’re updating.
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.