Solve the Problem of Temporary failure in name resolution when CentOS uses wget

Source: Internet
Author: User
Tags nameserver

Solve the Problem of Temporary failure in name resolution when CentOS uses wget

The following error occurs when you use wget to download a file when installing Redis in CentOS:


Failed: Temporary failure in name resolution

Literally, it means that an error occurred while parsing the URL. I guess there may be a problem with the network configuration of the machine and checked the eth0 configuration, if an external IP address is successfully pinged, but an external url is pinged, the host is unknow, And the DNS settings are incorrect.
Then edit/etc/resolv. conf.
Two lines of DNS configuration are added. For specific values, you can view the network DNS used in the city.
Nameserver XXX. XXX
Nameserver XXX. XXX

Run service network restart to restart the network service, and then run wget.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.