How To Install ldnsutils on Kali Linux

In this tutorial we learn how to install ldnsutils on Kali Linux. ldnsutils is ldns library for DNS programming

Introduction

In this tutorial we learn how to install ldnsutils on Kali Linux.

What is ldnsutils

ldnsutils is:

The goal of ldns is to simplify DNS programming, it supports recent RFCs like the DNSSEC documents, and allows developers to easily create software conforming to current RFCs, and experimental software for current Internet Drafts.

This package contains various client programs related to DNS that are based on top of libldns library and DRILL tool which is similar to dig. These tools were designed with DNSSEC in mind and are useful for DNS and DNSSEC testing and debugging.

There are three methods to install ldnsutils on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ldnsutils Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ldnsutils using apt-get by running the following command:

sudo apt-get -y install ldnsutils

Install ldnsutils Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ldnsutils using apt by running the following command:

sudo apt -y install ldnsutils

Install ldnsutils Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ldnsutils using aptitude by running the following command:

sudo aptitude -y install ldnsutils

How To Uninstall ldnsutils on Kali Linux

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

sudo apt-get remove ldnsutils

Uninstall ldnsutils And Its Dependencies

To uninstall ldnsutils and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ldnsutils

Remove ldnsutils Configurations and Data

To remove ldnsutils configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ldnsutils

Remove ldnsutils configuration, data, and all of its dependencies

We can use the following command to remove ldnsutils configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ldnsutils

Dependencies

ldnsutils have the following dependencies:

References

Summary

In this tutorial we learn how to install ldnsutils package on Kali Linux using different package management tools: apt, apt-get and aptitude.