How To Install autodns-dhcp on Ubuntu 18.04
Introduction
In this tutorial we learn how to install autodns-dhcp
on Ubuntu 18.04.
What is autodns-dhcp
autodns-dhcp is:
autodns-dhcp uses bind’s dynamic update features to update a zonefile with hostnames from the dhcp leases file, this is done just once for each hostname as the IP, MAC address and name are settled on the dhcp configuration to have an static zone.
There are three methods to install autodns-dhcp
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 autodns-dhcp Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install autodns-dhcp
using apt-get
by running the following command:
sudo apt-get -y install autodns-dhcp
Install autodns-dhcp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install autodns-dhcp
using apt
by running the following command:
sudo apt -y install autodns-dhcp
Install autodns-dhcp 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 autodns-dhcp
using aptitude
by running the following command:
sudo aptitude -y install autodns-dhcp
How To Uninstall autodns-dhcp on Ubuntu 18.04
To uninstall only the autodns-dhcp
package we can use the following command:
sudo apt-get remove autodns-dhcp
Uninstall autodns-dhcp And Its Dependencies
To uninstall autodns-dhcp
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove autodns-dhcp
Remove autodns-dhcp Configurations and Data
To remove autodns-dhcp
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge autodns-dhcp
Remove autodns-dhcp configuration, data, and all of its dependencies
We can use the following command to remove autodns-dhcp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge autodns-dhcp
References
Summary
In this tutorial we learn how to install autodns-dhcp
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.