For example, when we install a one-click package or a WEB panel, we may even encounter "wget: unable to resolve host address "error prompt, this is often because the server line and the IP address we need to connect to the problem, sometimes we cannot access some websites on our own computers, but the solution is to change the local DNS.
In the morning, when Linode was used to install the AMH panel, the problem "wget: unable to resolve host address" appeared frequently, for example, if the WDCP panel light cannot be installed on an Alibaba cloud server, it is because the local DNS of the VPS fails. We need to modify the DNS of the current VPS.
1. Modify the DNS configuration file
Log on to SSH of the current VPS and open the/etc/resolv. conf file.
2. Modify DNS
The code is as follows: |
Copy code |
Nameserver 8.8.8.8
Nameserver 8.8.4.4
|
We will replace all the content in it with the above content, save and exit the current file and try wget again, which should solve the problem.
PS: it is necessary to share and record some minor issues and skills in the future.