Centos系统清除DNS缓存
发布时间:2023-6-1 10:25:21 来源: 纵横云
Centos系统清除DNS缓存
Centos系统如何利用nscd(Name Service Cache Daemon)清除DNS缓存,本文将针对此问题进行详细说明。
1.安装nscd(Name Service Cache Daemon)服务,输入
yum -y install nscd
![Centos系统清除DNS缓存-2963](https://www.zoneidc.com/uploads/image/20230525/16849810828558287.png)
2.输入
systemctl status nscd
查看状态。
![Centos系统清除DNS缓存-2964](https://www.zoneidc.com/uploads/image/20230525/16849810884699339.png)
3.nscd 服务默认是关闭的,输入
systemctl start nscd
启动nscd服务。
![Centos系统清除DNS缓存-2965](https://www.zoneidc.com/uploads/image/20230525/16849810934692197.png)
4.启动nscd 服务后,输入
nscd -i hosts
清除缓存。
![Centos系统清除DNS缓存-2966](https://www.zoneidc.com/uploads/image/20230525/16849811031228757.png)
本文来源:
https://www.zonghengcloud.com/article/11034.html
[复制链接]
链接已复制