How to Install or Uninstall tinydns Ubuntu 22.04

Updated: September 22, 2022

tinydns is general-purpose DNS server that accepts iterative DNS queries from hosts around the Internet, and responds with locally configured information. In this tutorial, I will show you ways to install tinydns Ubuntu 22.04.

Requirements

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

Prerequisites to install tinydns on Ubuntu 22.04

Install tinydns Ubuntu 22.04

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

Install tinydns using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these instructions to install tinydns on your Ubuntu.

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. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

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

sudo apt-get install tinydns

Install tinydns using Aptitude

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

sudo apt -y install aptitude

Then, you can now install tinydns by following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install tinydns Ubuntu by executing this command in the terminal.

sudo aptitude install tinydns

Uninstall tinydns on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just tinydns.

You can uninstall tinydns on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove tinydns

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

sudo apt autoremove --purge tinydns

Conclusion

In this guide, I showed you ways to install tinydns on Ubuntu 22.04 and some ways to uninstall tinydns too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.