ubuntu ping网站时每次ping指令都需要很久才能有响应,不过网络延迟却正常。

 
后来发现是因为/etc/nsswitch.conf文件中hosts的配置有问题,做如下修改后正常:
 
将原来的这句
 
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
改为
hosts:         files dns
 
不用重启,现在ping一切正常了。

相关文章:

  • 2021-10-19
  • 2021-07-17
  • 2022-12-23
  • 2021-07-09
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2022-03-07
  • 2021-10-09
  • 2022-12-23
相关资源
相似解决方案