How To Install dns-flood-detector on Ubuntu 18.04

In this tutorial we learn how to install dns-flood-detector on Ubuntu 18.04. dns-flood-detector is detect abusive usage levels on high traffic nameservers

Introduction

In this tutorial we learn how to install dns-flood-detector on Ubuntu 18.04.

What is dns-flood-detector

dns-flood-detector is:

This package provides the dns-flood-detector daemon.

It was developed to detect abusive usage levels on high traffic nameservers and to enable quick response in halting the use of one’s nameserver to facilitate spam. It uses libpcap (in non-promiscuous mode) to monitor incoming dns queries to a nameserver. The tool may be run in one of two modes, either daemon mode or “bindsnap” mode. In daemon mode, the tool will alarm via syslog. In bindsnap mode, the user is able to get near-real-time stats on usage to aid in more detailed troubleshooting.

There are three methods to install dns-flood-detector on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install dns-flood-detector Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install dns-flood-detector

Install dns-flood-detector Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dns-flood-detector using apt by running the following command:

sudo apt -y install dns-flood-detector

Install dns-flood-detector Using aptitude

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

sudo aptitude update

After updating apt database, We can install dns-flood-detector using aptitude by running the following command:

sudo aptitude -y install dns-flood-detector

How To Uninstall dns-flood-detector on Ubuntu 18.04

To uninstall only the dns-flood-detector package we can use the following command:

sudo apt-get remove dns-flood-detector

Uninstall dns-flood-detector And Its Dependencies

To uninstall dns-flood-detector and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove dns-flood-detector

Remove dns-flood-detector Configurations and Data

To remove dns-flood-detector configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dns-flood-detector

Remove dns-flood-detector configuration, data, and all of its dependencies

We can use the following command to remove dns-flood-detector configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dns-flood-detector

References

Summary

In this tutorial we learn how to install dns-flood-detector package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.