How To Install dnsjava on CentOS 7
Introduction
In this tutorial we learn how to install dnsjava
on CentOS 7.
What is dnsjava
dnsjava is an implementation of DNS in Java. It supports all of the common record types and the DNSSEC types. It can be used for queries, zone transfers, and dynamic updates. It includes a cache which can be used by clients, and a minimal implementation of a server. It supports TSIG authenticated messages, partial DNSSEC verification, and EDNS0. dnsjava provides functionality above and beyond that of the InetAddress class. Since it is written in pure Java, dnsjava is fully threadable, and in many cases is faster than using InetAddress. dnsjava provides both high and low level access to DNS. The high level functions perform queries for records of a given name, type, and class, and return an array of records. There is also a clone of InetAddress, which is even simpler. A cache is used to reduce the number of DNS queries sent. The low level functions allow direct manipulation of dns messages and records, as well as allowing additional resolver properties to be set. A ‘dig’ clone and a dynamic update program are included, as well as a primary-only server.
We can use yum
or dnf
to install dnsjava
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dnsjava.
Install dnsjava on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install dnsjava
using yum
by running the following command:
Install dnsjava 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.
After updating yum database, We can install dnsjava
using dnf
by running the following command:
How To Uninstall dnsjava on CentOS 7
To uninstall only the dnsjava
package we can use the following command:
References
Summary
In this tutorial we learn how to install dnsjava
on CentOS 7 using yum
and dnf
.