第一步:

检查 vi   /etc/sysconfig/network-scripts/ifcfg-eth0

查看网卡配置里的dns是否与 vi  /etc/resolv.conf 的 nameserver  后面一致;

如果不一致,请更改一致,并重启网卡,注意第一个 DNS 是主要,一定要正确!

systemctl restart network

如果第一步,处理好后,还是不行,请执行第二步:

第二步:

vi /etc/nsswitch.conf

hosts: files dns
networks: files

改成:

hosts: files dns wins
networks: files

如果不一样的话,就在hosts:原来那行后面加个wins 就行了。

相关文章:

  • 2021-04-11
  • 2022-12-23
  • 2021-04-13
  • 2022-01-31
  • 2021-12-26
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2021-12-30
  • 2022-01-13
  • 2021-05-17
  • 2022-02-05
  • 2021-08-25
  • 2022-02-09
  • 2021-12-20
相关资源
相似解决方案