< 返回新闻公告列表

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

2.输入

systemctl status nscd

查看状态。

Centos系统清除DNS缓存-2964

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

systemctl start nscd

启动nscd服务。

Centos系统清除DNS缓存-2965

4.启动nscd 服务后,输入

nscd -i hosts

清除缓存。

Centos系统清除DNS缓存-2966
19906048601
19906048601 19906048601
返回顶部
返回顶部 返回顶部