From Dev.to
Your DNS TTL is why the outage lasted 2 hours: set it before you need it
The server died at 14:02. A new one was up at 14:20, and the A record was updated at 14:21. Half the users were still hitting the dead IP at 16:00. The fix took a minute. The TTL was 86400. DNS change...
