Uninstall bind Package
An XCCDF Rule
Description
The named
service is provided by the bind
package.
The bind
package can be removed with the following command:
$ sudo dnf erase bind
Rationale
If there is no need to make DNS server software available, removing it provides a safeguard against its activation.
- ID
- xccdf_org.ssgproject.content_rule_package_bind_removed
- Severity
- Low
- References
- Updated
Remediation - Anaconda Pre-Install Instructions
package --remove=bind
Remediation - Ansible
- name: Ensure bind is removed
package:
name: bind
state: absent
tags:
- CCE-86505-5
Remediation - Puppet
include remove_bind
class remove_bind {
package { 'bind':
ensure => 'purged',
}
Remediation - Shell Script
# CAUTION: This remediation script will remove bind
# from the system, and may remove any packages
# that depend on bind. Execute this
# remediation AFTER testing on a non-production
# system!