Ubuntu 12.04.5
I previously had connectivity on this server, but now I can’t ping hostnames. I can ping IPs. I’m no Linux expert so I don’t know how much of this is relevant, but I’ve noticed the following:
a) /etc/resolv.conf is empty.
b) The networking service has a “stop/waiting” status, but network-manager is running.
c) I noticed the problem since creating a Snapshot. This involved shutting down the server. Perhaps the restart caused an issue?
Any help is much 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!
Without doing anything, it is now working and /etc/resolv.conf is being populated.
I wish D.O. would explain to me what happened here (I did contact their support and I assume they fixed whatever the issue was). Unless I understand the problem I have no way of preventing it from happening again.
Try restarting the networking service:
sudo service networking restart
If that doesn’t fix it and /etc/resolv.conf is still empty, you can edit it manually. Set its contents to:
nameserver 8.8.8.8
nameserver 8.8.4.4
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.