Skip to content

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 Templates

script:kickstart

package remove bind

An Ansible Snippet

- name: Ensure bind is removed
  package:
    name: bind
    state: absent
  tags:
  - NIST-800-53-CM-6(a)

Anaconda Pre-Install Instructions

package --remove=bind

A Puppet Snippet

include remove_bind
class remove_bind {
  package { 'bind':
    ensure => 'purged',
  }
}

A 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!