Log into your Raspberry Pi (by ssh for example) or open a terminal window if you are working directly on Pi. In the first step we have to install ddclient, a DynDNS software, on the Pi. For this purpose, the following two commands are necessary.
sudo apt-get update
sudo apt-get install ddclient
Note: During installation an installation wizard opens and wants to know some things from you. Here you can safely enter what you want, because we have to adjust the configuration file manually either way, because the wizard does not support the Namecheap.com interface.
After we have installed ddclient, we must now adjust its configuration file. The path of the file is:
/etc/ddclient.conf
Open the config file using any text editor. (I prefer nano.)
sudo nano /etc/ddclient.conf
Now you have to replace the file’s contents and adapt with the following content:
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
protocol=namecheap
use=web, web=checkip.dyndns.com/, web-skip='IP Adress'
server=dynamicdns.park-your-domain.com
login=<yourdomain.com>
password=<your namecheap dyndns password>
<your subdomain>
- <yourdomain.com> must be replaced by the domain name, which you want to update.
- is the password that you have received from the instructions in the previous article.
- is the subdomain you want to update. If you want to upgrade your main domain, you must enter here a “@” (without the quotation marks).
Setup the DDClient Service Daemon to run at startup
sudo systemctl start ddclient.service
is the typo
web-skip='IP Adress'
intended?