How To Install ddupdate on CentOS 7

In this tutorial we learn how to install ddupdate on CentOS 7. ddupdate is Tool updating DNS data for dynamic IP addresses

Introduction

In this tutorial we learn how to install ddupdate on CentOS 7.

What is ddupdate

A tool to update dynamic IP addresses typically obtained using DHCP with dynamic DNS services such as changeip.com, duckdns.org or no-ip.com. It makes it possible to access a machine with a fixed name like myhost.duckdns.org even if the ip address changes. ddupdate caches the address, and only attempts the update if the address actually is changed. The tool has a plugin structure with plugins for obtaining the actual address (typically hardware-dependent) and to update it (service depen‐ dent). For supported services, it’s a linux-centric, user-friendly and flexible alternative to the ubiquotous ddclient. ddupdate is distributed with systemd support to run at regular intervals, and with NetworkManager templates to run when interfaces goes up or down.

We can use yum or dnf to install ddupdate on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ddupdate.

Install ddupdate on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ddupdate using yum by running the following command:

sudo yum -y install ddupdate

Install ddupdate on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ddupdate using dnf by running the following command:

sudo dnf -y install ddupdate

How To Uninstall ddupdate on CentOS 7

To uninstall only the ddupdate package we can use the following command:

sudo dnf remove ddupdate

References

Summary

In this tutorial we learn how to install ddupdate on CentOS 7 using yum and dnf.