In this guide, we will walk through the steps to install and configure DDClient on Ubuntu 14.04 LTS to work with CloudFlare. DDClient is a dynamic DNS update client that allows you to automatically update your DNS records on CloudFlare when your IP address changes. This can be useful if you are hosting a server on a dynamic IP address.
Prerequisites
Before you begin, make sure you have the following:
- A domain registered on CloudFlare, e.g.,
mycomputer.example.com. - Access to your CloudFlare account.
- A Ubuntu 14.04 LTS server.
Step 1: Create a Domain Entry on CloudFlare
- Log in to your CloudFlare account.
- Create a domain entry for your dynamic DNS, e.g.,
mycomputer.example.com. Note down your CloudFlare login email and API key; you will need these later.
Step 2: Install Required Dependencies
Open a terminal on your Ubuntu server and install the necessary Perl modules:
|
|
Step 3: Download DDClient Files
Download the latest DDClient files from the official project on SourceForge:
|
|
Step 4: Extract DDClient Files
Extract the downloaded DDClient files:
|
|
Step 5: Apply the CloudFlare Patch
Download the CloudFlare patch file:
|
|
Apply the patch:
|
|
Step 6: Manual Installation
Create necessary directories and copy files:
|
|
Step 7: Edit DDClient Configuration
Edit the DDClient configuration file to match the following settings:
|
|
Or:
|
|
Ensure your configuration file looks like this (make special note of where commas are placed):
|
|
Step 8: Start the DDClient Service
Start the DDClient service:
|
|
To check the logs, use the following command:
|
|
Step 9: Set DDClient to Run at Startup
To ensure DDClient runs at startup, remove any existing links and then add DDClient to the startup sequence:
|
|
That’s it! You’ve successfully set up DDClient to work with CloudFlare on your Ubuntu 14.04 LTS server. DDClient will now automatically update your DNS records on CloudFlare whenever your IP address changes.