How To Install maradns-zoneserver on Debian 9

In this tutorial we learn how to install maradns-zoneserver on Debian 9. maradns-zoneserver is complementary server process to TCP functions for MaraDNS

Introduction

In this tutorial we learn how to install maradns-zoneserver on Debian 9.

What is maradns-zoneserver

maradns-zoneserver is:

The MaraDNS zoneserver listens on port 53/tcp and handles DNS zone transfers and any DNS query done over TCP instead of UDP. It uses the same configuration file as the MaraDNS process itself.

This package also includes askmara-tcp, a version of askmara that uses TCP rather than UDP.

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

Install maradns-zoneserver Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install maradns-zoneserver

Install maradns-zoneserver Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install maradns-zoneserver

Install maradns-zoneserver 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install maradns-zoneserver

How To Uninstall maradns-zoneserver on Debian 9

To uninstall only the maradns-zoneserver package we can use the following command:

sudo apt-get remove maradns-zoneserver

Uninstall maradns-zoneserver And Its Dependencies

To uninstall maradns-zoneserver and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove maradns-zoneserver

Remove maradns-zoneserver Configurations and Data

To remove maradns-zoneserver configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge maradns-zoneserver

Remove maradns-zoneserver configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge maradns-zoneserver

Dependencies

maradns-zoneserver have the following dependencies:

References

Summary

In this tutorial we learn how to install maradns-zoneserver package on Debian 9 using different package management tools: apt, apt-get and aptitude.