Information
The Domain Name System (DNS) is a hierarchical naming system that maps names to IP addresses for computers, services and other resources connected to a network.
Unless a system is specifically designated to act as a DNS server, it is recommended that the package be removed to reduce the potential attack surface.
Solution
Run the following commands to stop named.service and remove bind package:
# systemctl stop named.service
# yum remove bind
-OR-
-IF- the bind package is required as a dependency:
Run the following commands to stop and mask named.service :
# systemctl stop named.service
# systemctl mask named.service
Impact:
There may be packages that are dependent on the bind package. If the bind package is removed, these dependent packages will be removed as well. Before removing the bind package, review any dependent packages to determine if they are required on the system.
-IF- a dependent package is required: stop and mask the named.service leaving the bind package installed.