Troubleshooting Mysterious Website Downtime: A Case Study on VPS, DNS, and Hosting Expiry

by — February 15, 2025
Reading Time: 4 mins read

Table of Contents

Troubleshooting Website downtime can be a frustrating experience, especially when there’s no clear sign of what went wrong.

Recently, we encountered an issue where two websites hosted on our VPS were behaving differently—one was accessible, while the other was completely unreachable.

This led us on a deep troubleshooting journey to diagnose and fix the problem.

Initial Troubleshooting Steps for Website Downtime

🛠 Step 1: Identifying the Problem

🛠 Step 2: Ensuring the VPS is Running

Before jumping into DNS-related issues, we verified that our VPS was running. If the VPS itself was down, that could explain why the sites weren’t loading. We ran tests on our server:

Since other sites on the VPS were working perfectly fine, we ruled out a VPS failure and focused on investigating domain-specific problems.

🔧 Step 3: Investigating Potential Causes

Domain Expiry Check

DNS Propagation Check

Checking Web Hosting & Server Status

🛠 Step 4: Different Causes for Each Website’s Issue

While both websites had been moved to our hosting environment, they still had some time left on their previous hosting plans, and we leveraged their cPanel zone editor to host them from our VPS.

After diagnosing the problem, we found that both websites had different underlying issues:

Although both websites faced similar downtime issues, the root causes were distinct and required different solutions.

🛠 Step 5: Fixing the DNS Issue

Updating the Nameservers

Verifying Propagation

Clearing DNS Cache

To speed up the local resolution, we cleared the DNS cache:


        sudo systemctl restart systemd-resolved # Linux
        ipconfig /flushdns # Windows
    

🛠 Step 6: When Hosting Providers Delete DNS Records

Why Does This Happen?

How to Fix It

1. Contact the Previous Hosting Provider

2. Manually Add New DNS Records

If the old provider deleted all records, you need to configure them manually:

🚀 Step 7: Confirming the Fix

🔑 Key Lessons from Troubleshooting Website Downtime

🚀 Before You Go:

  • 💬 Got thoughts? Share your insights!
  • 📤 Know someone who needs this? Share the post!
  • 🌟 Your support keeps us going!

💻 Level up with the latest tech trends, tutorials, and tips - Straight to your inbox – no fluff, just value!

Leave a Reply

Your email address will not be published. Required fields are marked *

Support WebDevStory
Pictory 20% off
The Book Every Programmer Swears By
Recommended Hosting
Earn Money
Upgrade Your Skills
Work Comfortably Anywhere

Note: Some links on this page might be affiliate links. If you make a purchase through these links, I may earn a small commission at no extra cost to you. Thanks for your support!