🛰️ Won the Power Outage Battle, Lost to a Ping

📆 2025-08-04 16:40

They said running a homelab was a fun hobby. They didn’t tell me it would turn into a full-time job involving power engineering, DNS sorcery, and the occasional battle with an ancient USB cable. But here we are.

⚡ NUT + UPS + Docker = Apocalypse-Proof?

My setup looks like this:

Extras:

The idea? If the grid fails, my cluster becomes a polite gentleman: it warns everyone, saves its work, and lies down until the lights return.

And it worked! ... until yesterday. My internet went down for more than 3 hours. (Not that I have a lot of traffic and everybody noticed that my sava.rocks services were down).

🚫 The Unexpected Boss Fight: Internet Outage

Power stayed on. But the internet died.

Suddenly, my proud little cluster — which survived power chaos like a champ — sat idle, confused, alone, unable to resolve even a simple DNS query.

It was like watching a bodybuilder forget how to open a peanut jar.

Why? Because while I protected against power failure, I forgot the other lifeblood of modern homelabs: connectivity.

Without internet:

📶 Time for Plan B: A Bucket of Wireless Internet

I needed a backup connection. A plan. A dream.

So, what counts as emergency internet?

Okay, maybe not the last one. (Or maybe yes.)

Even better: bake internet monitoring into my NUT logic:

if ! ping -c1 1.1.1.1; then
  echo "Internet down. Releasing the backup modem kraken..." | send-to-gotify.sh
fi

🌐 But Wait — What About the Domain?

Keeping your services online isn't just about having internet. It's about being reachable. So I needed to fix DNS too.

🌀 Option 1: Dynamic DNS Like It’s 2009

🧠 Option 2: Fancy DNS Failover

🛠️ Option 3: Self-Hosted DNS With Control Issues

📚 Takeaways From My Internet Faceplant

My cluster lived through a lot of power blackouts like a stoic wizard. But a simple internet outage turned it into a confused puppy.

🔮 What’s Next?

I'm now working on:

🚶 Back to my blog