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

centos cannot resolve host domain name

王林
Release: 2020-03-19 14:08:42
Original
2894 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template