wget "failed: Name or service not known" centos7

  • Posted December 23, 2021
  • CentOS

I have 3 droplets with DO (AMS3). Today, I faced a problem. It seems the servers could not connect to the outside world.

Here is what I tried: wget

Response: –2021-12-23 15:53:47-- Resolving (… failed: Name or service not known. wget: unable to resolve host address ‘

I followed the steps mentioned on: And I received exactly the same responses “lauramoreno1436” reported:

cat /etc/resolv.conf nameserver nameserver

dig ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.4 <<>> ;; global options: +cmd ;; connection timed out; no servers could be reached

dig @ ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.4 <<>> @ ; (1 server found) ;; global options: +cmd ;; connection timed out; no servers could be reached

I am using to purchase DO droplets using cryptocurrency. I am not sure if I could open a ticket by DO. Any help is appreciated.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there!

This sounds like it may be a DNS issue, but you would want to confirm by trying to ping an IP address. ping -c10 If you are able to reach that IP then there may be an issue with your resolvers. You could look at updating those to another set and then try the request again. If you aren’t able to ping the IP then you would probably want to reach out to for them to check if there is network issue on the droplet itself.

Hope it helps! Nate