A One-Second DNS Gap During Ubuntu Upgrade Took Down a Website for 8 Hours
A developer's website went offline for over eight hours after nginx failed to restart during a routine unattended Ubuntu upgrade. The upgrade included systemd itself, which triggered a brief self-reexecution that temporarily disrupted the local DNS resolver. During that window, nginx attempted a config test that required resolving a hardcoded upstream hostname, failed, and never came back up — even though the server hardware remained healthy throughout. The outage was only discovered when a syndication job flagged repeated 521 errors around 10:00, more than three hours after the site had gone down at 06:49. The fix involves using a nginx variable for the upstream hostname so DNS resolution is deferred to request time, limiting any future DNS failure to a single endpoint rather than the entire server.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in