网上查了下,发现linux刷新dns的缓存方法都是:
sudo /etc/init.d/nscd restart
但是在我的机器上,发现提示命令找不到:
sudo /etc/init.d/nscd: command not found
后来发现是需要先安装nscd包:
sudo apt-get install nscd
但我不想为此安装一个程序或服务,只好用最暴力的方法刷dns,重启网络:
sudo /etc/init.d/networking restart
网上查了下,发现linux刷新dns的缓存方法都是:
sudo /etc/init.d/nscd restart
但是在我的机器上,发现提示命令找不到:
sudo /etc/init.d/nscd: command not found
后来发现是需要先安装nscd包:
sudo apt-get install nscd
但我不想为此安装一个程序或服务,只好用最暴力的方法刷dns,重启网络:
sudo /etc/init.d/networking restart
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。