Question

Centos can ping IP, but cannot ping domains

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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Accepted Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?