刚刚装好的虚拟机,在/etc/network/interfaces 里面配置好ip,netmask,dns,gateway之后,

ping www.baidu.com 出现  unknow host www.baidu.com

首先检查网关,dns能不能ping通,之后去文件/etc/resolv.conf中加入

nameserver dns的ip

然后 重启网络

这样就ok了。

相关文章:

  • 2022-12-23
  • 2021-04-21
  • 2021-11-25
  • 2021-07-19
  • 2021-09-30
  • 2021-08-27
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2022-01-08
  • 2021-09-10
  • 2021-08-11
  • 2022-12-23
  • 2021-09-09
  • 2021-05-22
相关资源
相似解决方案