How to Install or Uninstall gdnsd on Ubuntu 22.04

Updated: September 19, 2022

gdnsd is an Authoritative-only DNS server. The initial g stands for Geographic, as gdnsd offers a plugin system for geographic (or other sorts of) balancing, redirection, and service-state-conscious failover. I will show you how to install gdnsd on Ubuntu 22.04 in this tutorial.

Prerequisites to install

  • Operating system: Ubuntu 22.04 is needed for gdnsd to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install gdnsd on Ubuntu 22.04

Install gdnsd Ubuntu 22.04

gdnsd is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install gdnsd using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to get gdnsd on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install gdnsd Ubuntu by pasting this command into the terminal and executing it.

sudo apt install gdnsd

Install gdnsd using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing, you can now install gdnsd, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install gdnsd Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install gdnsd

Uninstall gdnsd on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed gdnsd using APT or Aptitude, you could uninstall gdnsd on Ubuntu by following this step:

sudo apt remove --auto-remove gdnsd

If you want to uninstall gdnsd and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge gdnsd

Summary

In this tutorial, I showed you ways to install gdnsd on Ubuntu 22.04 and ways to uninstall gdnsd too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.