Users are discussing DNS lookup issues on Digital Ocean, which appear to be caused by Google rate-limiting or blocking specific IP ranges, particularly in the NYC2 data center pfaffman. This has led to failed builds and slow resolution times. While codinghorror notes this is a recurring topic, others are seeking validation for the Google rate-limiting claim michaeld. pfaffman confirmed the issue with an official response from Digital Ocean and referenced their status page, recommending a temporary fix: editing /etc/resolv.conf to use OpenDNS servers. Other users suggested installing unbound as an alternative solution. The situation was ultimately resolved when Digital Ocean reported that Google had completed maintenance, and the issue should no longer occur pfaffman.
This is the first time I remember seeing any problems with Digital Ocean in the couple years I’ve been dealing with them. They use Google’s DNS servers by default, and Google is rate-limiting them. I don’t know whether this is in all data centers, but I know it’s in NYC2 (where I typically install for my clients). digitaloceanstatus.com has some info at the top of the page.
If you’re having strange problems and/or rebuilds are failing, this is likely why.
A fix (recommended by Digital Ocean) is to edit /etc/resolv.conf (e.g., nano /etc/resolv.conf) and replace the name server lines that are there with OpenDNS’s servers.
On the next reboot (which for my install customers will be soon after the next security update that requires a reboot), /etc/resolv.conf will be re-written with Google’s name servers.