Home >Operation and Maintenance >CentOS >centos cannot resolve host domain name
Problem restoration:
Resolving host cdn.openbsd.org (cdn.openbsd.org)... Failure: Domain name resolution temporarily failed.
wget: Unable to resolve host address "cdn.openbsd.org"
Cause:
The dns server is not configured.
(Recommended tutorial: centos usage tutorial)
Solution:
1. Enter /etc/resolv.conf
2. Modify or add content:
nameserver 8.8.8.8
Try again:
正在解析主机 cdn.openbsd.org (cdn.openbsd.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ... 正在连接 cdn.openbsd.org (cdn.openbsd.org)|151.101.2.217|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:1597697 (1.5M) [application/octet-stream] 正在保存至: “openssh-8.0p1.tar.gz” 100%[========================================================================================================================>] 1,597,697 12.2KB/s 用时 2m 18s
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of centos cannot resolve host domain name. For more information, please follow other related articles on the PHP Chinese website!