How To Install jdns on CentOS 7

In this tutorial we learn how to install jdns on CentOS 7. jdns is A simple DNS queries library

Introduction

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

What is jdns

JDNS is a simple DNS implementation that can perform normal DNS queries of any record type (notably SRV), as well as Multicast DNS queries and advertising. Multicast support is based on Jeremie Miller’s “mdnsd” implementation. For maximum flexibility, JDNS is written in C with no direct dependencies, and is licensed under the MIT license. Your application must supply functionality to JDNS, such as UDP sending/receiving, via callbacks.

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

Install jdns on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install jdns

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

sudo dnf -y install jdns

How To Uninstall jdns on CentOS 7

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

sudo dnf remove jdns

References

Summary

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