How To Install dnsmasq.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install dnsmasq.x86_64
on Amazon Linux 2.
What is dnsmasq.x86_64
Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP for network booting of diskless machines.
We can use yum
to install dnsmasq.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install dnsmasq.x86_64.
Install dnsmasq.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install dnsmasq.x86_64
using yum
by running the following command:
sudo yum -y install dnsmasq.x86_64
How To Uninstall dnsmasq.x86_64 on Amazon Linux 2
To uninstall only the dnsmasq.x86_64
package we can use the following command:
sudo yum remove dnsmasq.x86_64
dnsmasq.x86_64 Package Contents on Amazon Linux 2
/etc/dbus-1/system.d/dnsmasq.conf
/etc/dnsmasq.conf
/etc/dnsmasq.d
/usr/lib/systemd/system/dnsmasq.service
/usr/sbin/dnsmasq
/usr/share/doc/dnsmasq-2.76
/usr/share/doc/dnsmasq-2.76/CHANGELOG
/usr/share/doc/dnsmasq-2.76/COPYING
/usr/share/doc/dnsmasq-2.76/COPYING-v3
/usr/share/doc/dnsmasq-2.76/DBus-interface
/usr/share/doc/dnsmasq-2.76/FAQ
/usr/share/doc/dnsmasq-2.76/doc.html
/usr/share/doc/dnsmasq-2.76/setup.html
/usr/share/man/man8/dnsmasq.8.gz
/var/lib/dnsmasq
References
Summary
In this tutorial we learn how to install dnsmasq.x86_64
on Amazon Linux 2 using yum.