Report this

What is the reason for this report?

Centos can ping IP, but cannot ping domains

Posted on December 30, 2021

I have 3 servers with DO(AMS3). Suddenly, three servers at the same time faced the same issue. It seems the servers cannot connect to the outside world. I tried to ping different IP addresses and domains. Here is the result:

ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=2.11 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=60 time=0.946 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=60 time=0.724 ms

ping google.com ping: google.com: Name or service not known

I searched the DO community. There were suggestions that the file “/etc/resolv.conf” might have issues. Here is my “/etc/resolv.conf” file:

cat /etc/resolv.conf ; Created by cloud-init on instance boot automatically, do not edit. nameserver 8.8.8.8 nameserver 8.8.4.4

Any help is appreciated.



This textbox defaults to using Markdown to format your 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.
0

Thanks to the entire DO community for being such unresponsiveness and unhelpful :) It took me a couple of days but I have found the source of the problem. I have created a new DigitalOcean droplet and the newly created server had the same problem. So, I figured out there is something wrong with DO itself. I hope this helps the others with the same problem.

Hi @imanpost,

What happens when you try to curl the domain from your Droplet:

curl -IL google.com

Does it work>

Additionally, if you telnet to port 80 or 443 via the IP and the Domain are there any differences?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.