Knowledge base

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

Configure ddclient with Infomaniak DynDNS

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

 

Prerequisites

  • Have installed the ddclient package 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=enter_your_login
password=enter_your_password
yourdomain.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).
  • yourdomain.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 yourdomain.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

 

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 yourdomain.xyz or nslookup).
  • If your IP does not change often, keep a reasonable update interval to avoid unnecessary requests.

Has this FAQ been helpful?