添加域名服务器地址

vim /etc/resolv.conf

云主机里面原本的域名服务器地址不要动,直接换行新增下面的这两条记录

#主DNS服务器
nameserver 114.114.114.114
#备用DNS服务器(当然也可以是自己部署的域名私有服务器)
nameserver 8.8.8.8

重启网络管理器来刷新配置

systemctl restart NetworkManager

相关文章:

  • 2021-10-25
  • 2021-09-02
  • 2021-08-27
  • 2021-11-19
  • 2021-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-09-10
猜你喜欢
  • 2021-11-14
  • 2021-07-27
  • 2021-06-07
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案