2.1.5 Ensure dnsmasq services are not in use
Audit#
Run one of the following command to verify dnsmasq is not installed:
Nothing should be returned.- OR - - IF - the package is required for dependencies: Run the following command to verify dnsmasq.service is not enabled:
Nothing should be returnedRun the following command to verify dnsmasq.service is not active:
Nothing should be returnedNote: If the package is required for a dependency - Ensure the dependent package is approved by local site policy - Ensure stopping and masking the service and/or socket meets local site policy
Remediation#
Run the following commands to stop dnsmasq.service and remove the dnsmasq package:
- OR - - IF - the dnsmasq package is required as a dependency: Run the following commands to stop and mask dnsmasq.service: