2.2.4 Ensure dns server services are not in use

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.

See Also

https://workbench.cisecurity.org/benchmarks/15963

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: e7e4c140395ba5c617f13612410e9504b992d622cd070c81050d0ac045f1c71b