VPS Host DNS resolution cannot wget download remote file issue

Source: Internet
Author: User
Tags vps nameserver vps server
Including the old Chiang usually installed in the VPS host a certain environment, because of the different server IP problems, even the same service provider with a computer room, the IP address is different, at the same time wget a file when some of them will not download files. Or when we install a file program, the download speed is very slow through the wget.
There are two possible problems encountered, the first is our server DNS problem, connected to the need to download the file source impassability; The second is the source data problem, the server to our local very slow. The most direct way to meet this solution is to modify the current VPS server DNS, such as the old Chiang today in a server to install the volume of files, there are several can not get the file.
Workaround:
1, check the current server DNS
The code is as follows Copy Code
/etc/resolv.conf
Looking at the current file, we might see something like this:
The code is as follows Copy Code
NameServer 8.8.8.8
NameServer 8.8.4.4
We sometimes may not be this DNS, can be modified into this, if still not, the old Chiang on the use of Google DNS does not, then continue to find public DNS modification.
The code is as follows Copy Code
Ali Public dns:223.5.5.5/223.6.6.6
Baidu Public dns:180.76.76.76
We can replace and execute the file download and compile according to our actual needs. Here I replaced the above Baidu public DNS to solve the problem.

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: info-contact@alibabacloud.com 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.