厦门服务器租用>云服务器>Centos系统清除DNS缓存

Centos系统清除DNS缓存

发布时间:2023/5/25 10:19:30

Centos系统清除DNS缓存

Centos系统如何利用nscd(Name Service Cache Daemon)清除DNS缓存,本文将针对此问题进行详细说明。

1.安装nscd(Name Service Cache Daemon)服务,输入

yum -y install nscd

Centos系统清除DNS缓存-2963

2.输入

systemctl status nscd

查看状态。

Centos系统清除DNS缓存-2964

3.nscd 服务默认是关闭的,输入

systemctl start nscd

启动nscd服务。

Centos系统清除DNS缓存-2965

4.启动nscd 服务后,输入

nscd -i hosts

清除缓存。

Centos系统清除DNS缓存-2966

在线客服
微信公众号
免费拨打400-1886560
免费拨打0592-5580190 免费拨打 400-1886560 或 0592-5580190
返回顶部
返回头部 返回顶部