Solving the problem of "wget: unable to resolve host address" when downloading VPS files

888u

Last update at :2024-06-23,Edit by888u

For example, when we install a one-click package or WEB panel, or even when we need to call the backup file in the remote server, the error message "wget: unable to resolve host address" may appear. The problem is often caused by a disconnect between the line where the server is located and the IP address we need to connect to. It's like sometimes our own computers can't access some websites, but our solution is to change the local DNS.

This morning Snail had a problem like "wget: unable to resolve host address" when using Linode to install the AMH panel. This problem seems to be encountered often, such as the Alibaba Cloud server's inability to install the WDCP panel light problem. , all caused by the local DNS failure of the VPS. We need to modify the DNS of the current VPS.

First, modify the DNS configuration file

Log into SSH of our current VPS and open the /etc/resolv.conf file

Second, modify DNS

nameserver 8.8.8.8nameserver 8.8.4.4

We will replace all the content inside with the above content, save and exit the current file and try wget again. This should solve the problem.

PS: Some small problems and techniques still need to be shared and recorded in the future.

Recommended site searches: registration-free space and free network, Hong Kong cloud hosting, US hosting reviews, cm domain name registration, Shanghai domain name registration, Ministry of Industry and Information Technology website registration system, permanent free space, Ministry of Industry and Information Technology registration query, overseas hosting rental, free foreign space< /p>

Solving the problem of

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码