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 ~]#

dns centos7

无力的撸炮 9 years, 6 months ago

centos 7 已经用systemd 了

试试 systemctl restart nscd

网恋中的老宅男 answered 9 years, 6 months ago

Your Answer