Ubuntu修改dns服务器

问题背景

域名DNS解析异常。

解决方案

编辑DNS配置文件

sudo vim /etc/resolv.conf

在文件中增加如下内容

nameserver 114.114.114.114
nameserver 8.8.8.8

参考资料

  1. curl: (6) Could not resolve host: www.baidu.com:https://blog.csdn.net/qq_32440951/article/details/80825259
Last modification:December 7th, 2021 at 06:29 pm
如果觉得我的文章对你有用,请随意赞赏