Skip to content

Instantly share code, notes, and snippets.

@psychicbologna
Forked from PhilMurwin/RasPiNamecheapDNS.md
Created March 8, 2024 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psychicbologna/d84f98bf3171e3ca20716b489fb5e429 to your computer and use it in GitHub Desktop.
Save psychicbologna/d84f98bf3171e3ca20716b489fb5e429 to your computer and use it in GitHub Desktop.
How to setup DDclient on Raspberry Pi for use with Namecheap DynDNS

How to use Namecheap DynDNS service with ddclient on the Raspberry Pi

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.

Customizing the ddclient configuration

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).

Run as Daemon Service

Setup the DDClient Service Daemon to run at startup

sudo systemctl start ddclient.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment