代码改变世界

DNS解析问题

2019-07-07 17:46  ZealouSnesS  阅读(355)  评论(0编辑  收藏  举报

DNS解析问题,在/etc/resolv.conf文件中加如下一行:

nameserver 8.8.8.8

即使用谷歌的域名服务器

 

 

如下问题都是DNS解析问题:

apt-get update 异常 Temporary failure resolving

 

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)