关于网友提出的“centos7 如何刷新dns缓存”问题疑问,本网通过在网上对“centos7 如何刷新dns缓存”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:centos7 如何刷新dns缓存
描述:
centos7 如何刷新本地的DNS缓存
[root@fl2 ~]# ping dl.z.com
ping: unknown host dl.z.com
[root@fl2 ~]# /etc/rc.d/init.d/nscd restart
-bash: /etc/rc.d/init.d/nscd: No such file or directory
[root@fl2 ~]# /etc/rc.d/nscd restart
-bash: /etc/rc.d/nscd: No such file or directory
[root@fl2 ~]#
解决方案1:
centos 7 已经用systemd 了
试试 systemctl restart nscd
以上介绍了“centos7 如何刷新dns缓存”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/1060460.html