Home  >  Article  >  Operation and Maintenance  >  centos cannot resolve host domain name

centos cannot resolve host domain name

王林
王林Original
2020-03-19 14:08:422773browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn