vi /etc/resolv.conf

nameserver 192.168.10.10

2.查看网卡:

nmcli d

centos 遇到Name or service not known

 

 3.修改dns

cd /etc/sysconfig/network-scripts/

vi ifcfg-ens160

DNS1= 192.168.10.10

其他配置参考网上

4. 重新启动网络服务

systemctl restart network

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-04-19
相关资源
相似解决方案