Ubuntu Server DNS Resolver Issues
News / updated: March 22, 2017

Ubuntu Server DNS Resolver Issues

This morning many people, including Laravel News, are experiencing that their sites are erroring when communicating with third party systems. The hostnames couldn’t be resolved and causing all those to fail.

The apparent fix is to restart either PHP-FPM, Apache, or Nginx. If you are using Forge you can SSH in and run:

sudo service php7.0-fpm restart

Replacing “7.0” with your installed PHP version, or restart the Nginx service from the Forge admin.

I haven’t been able to pinpoint the actual cause but on social media, some are saying it’s related to an Ubuntu nightly security update.

In my tests it was just web requests, anything ran through the CLI would still work fine, but that meant that my Bugsnag errors couldn’t be logged, and all the API calls failed.

Update: Based on an AWS forum thread they are reporting that is likely to have been caused by a recent libc6 security update on Ubuntu as there was a patch to the DNS resolution code.

Update Mar 22, 2017: In today’s Ubuntu Security Notice USN-3239-2 they have reverted the change that caused issues yesterday. That means that long-running services that were restarted to compensate for USN-3239-1 update will need to be restarted again.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.