sudo etcinitddns-clean command not found
The error message "sudo: /etc/init.d/dns-clean: command not found" indicates that the command "dns-clean" is not found in the specified directory "/etc/init.d/".
This error usually occurs when the DNS cleaning service is not installed or the command is not available on the system. The DNS cleaning service is not commonly used in modern Linux distributions, so it's possible that it is not installed by default.
If you need to clean the DNS cache, you can try using the appropriate command for your Linux distribution. Here are a few examples:
-
For Ubuntu and Debian-based systems:
sudo service systemd-resolved restart -
For CentOS and Red Hat-based systems:
sudo systemctl restart named
If you want to install the "dns-clean" command specifically, you can try searching for a package that provides it using the package manager specific to your distribution. For example, on Ubuntu, you can use the following command to search for the package:
apt search dns-clean
Remember to check the official documentation or consult the package manager's manual for accurate instructions specific to your Linux distribution
原文地址: http://www.cveoy.top/t/topic/idNJ 著作权归作者所有。请勿转载和采集!