Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Configure ddclient with DynDNS Infomaniak

This guide explains how to configure ddclient, a tool available on most Linux distributions, to use it with the Infomaniak DynDNS service.

 

Prerequisites

  • Have the ddclient package installed for your distribution (e.g.: sudo apt install ddclient).
  • Have a DynDNS record already created on the domain or subdomain to update.
  • Check that the SSL module for Perl is installed: sudo apt install libio-socket-ssl-perl.

 

ddclient Configuration

The configuration file /etc/ddclient.conf must contain the following information:

protocol=dyndns2
ssl=yes
use=web
server=infomaniak.com
login=votre_login
password=votre_mot_de_passe
votredomaine.xyz
  • ssl=yes: allows a secure connection. This parameter is mandatory for the update to work correctly.
  • use=web: tells ddclient to use an external service to automatically detect your public IP address.
  • login / password: DynDNS credentials defined in the Infomaniak Manager when adding the Dynamic DNS (help).
  • votredomaine.xyz: replace with your DynDNS domain or subdomain.

 

Test and Verification

Before launching ddclient as a service, you can test the configuration with:

sudo ddclient -daemon=0 -verbose -debug

If the configuration is correct, you will see a message of type SUCCESS: updating votredomaine.xyz.

 

Service Startup

Once the configuration is validated, restart and activate ddclient:

sudo systemctl restart ddclient
sudo systemctl enable ddclient

You can check its status with:

sudo systemctl status ddclient

 

But also:

  • Protect the configuration file with: sudo chmod 600 /etc/ddclient.conf.
  • Regularly check that the IP address is correctly updated via a DNS lookup (dig votredomaine.xyz or nslookup).
  • If your IP does not change often, keep a reasonable refresh interval to avoid unnecessary requests.

Has this FAQ been helpful?