DEV Community

Ayman Bagabas
Ayman Bagabas

Posted on • Originally published at aymanbagabas.com on

Dynamic DNS using DDclient

DDclient is a service used to update dynamic DNS entries on many services. It is useful if you need a DDNS client that can work with pretty much any DNS service. Most distributions provide DDclient in their official repositories. It is available on Debian-based systems, Fedora, Archlinux, and many more.

In my case, I need DDclient for my NextcloudPi server that runs on a Raspberry Pi 3B hooked up to a storage device. This server gives me access to my files anywhere anytime as long as it has a working internet connection. I’m using a free DNS service from Dynu and in their website, they go in details of how you would set up dynamic DNS using DDclient. It turns out that they use a dyndns2 protocol by www.dyndns.com to provide this service.

Now after installing DDclient, the client can configure it under /etc/ddclient.conf where you can set the update interval, server address (in this case dynu.com), username and password, etc.

protocol=dyndns2
pid=/var/run/ddclient.pid
ssl=yes
use=web, web=checkip.dynu.com/, web-skip='IP Address'
server=api.dynu.com
login=[YOUR_DYNU_USERNAME]
password='[YOUR_PASSWORD]'
[YOUR_DNS_ADDRESS]

Enter fullscreen mode Exit fullscreen mode

As you can see I’m using dynu.com server. Different DNS services would have different configurations.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay