How To Install avahi-dnsconfd on CentOS 7

In this tutorial we learn how to install avahi-dnsconfd on CentOS 7. avahi-dnsconfd is Configure local unicast DNS settings based on information

Introduction

In this tutorial we learn how to install avahi-dnsconfd on CentOS 7.

What is avahi-dnsconfd

avahi-dnsconfd connects to a running avahi-daemon and runs the script /etc/avahi/dnsconfd.action for each unicast DNS server that is announced on the local LAN. This is useful for configuring unicast DNS servers in a DHCP-like fashion with mDNS.

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

Install avahi-dnsconfd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install avahi-dnsconfd using yum by running the following command:

sudo yum -y install avahi-dnsconfd

Install avahi-dnsconfd 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 avahi-dnsconfd using dnf by running the following command:

sudo dnf -y install avahi-dnsconfd

How To Uninstall avahi-dnsconfd on CentOS 7

To uninstall only the avahi-dnsconfd package we can use the following command:

sudo dnf remove avahi-dnsconfd

References

Summary

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