WebDevStory
  • Tech
    • Software Testing
    • IT and Management
    • Software Engineering
    • Technology
  • Web
    • JavaScript
    • Web Development
    • Front-end Development
    • React
    • Database Technologies
  • AI
    • AI and Machine Learning
    • AI in Education
    • AI Learning
    • AI Prompts
  • Programming
    • Coding
    • Design Patterns
  • Misc
    • Digital Transformation
    • SEO
    • Technology and Business
    • Technology and Innovation
    • Developer Roadmaps
    • Digital Marketing
  • More
    • Newsletter
    • Support Us
    • Contact
    • Tech & Lifestyle
    • Digital Nomadism
  • Services
    • Tech Services
    • WordPress Maintenance Package
No Result
View All Result
WebDevStory
  • Tech
    • Software Testing
    • IT and Management
    • Software Engineering
    • Technology
  • Web
    • JavaScript
    • Web Development
    • Front-end Development
    • React
    • Database Technologies
  • AI
    • AI and Machine Learning
    • AI in Education
    • AI Learning
    • AI Prompts
  • Programming
    • Coding
    • Design Patterns
  • Misc
    • Digital Transformation
    • SEO
    • Technology and Business
    • Technology and Innovation
    • Developer Roadmaps
    • Digital Marketing
  • More
    • Newsletter
    • Support Us
    • Contact
    • Tech & Lifestyle
    • Digital Nomadism
  • Services
    • Tech Services
    • WordPress Maintenance Package
No Result
View All Result
WebDevStory
No Result
View All Result
Home Case Study

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

Mainul Hasan by Mainul Hasan
February 15, 2025
in Case Study, Server Knowledge
Reading Time: 4 mins read
0 0
0
Concrete block letters spelling 'SITE DOWN' representing website downtime.

A symbolic representation of website downtime using concrete block letters spelling 'SITE DOWN' on a reflective surface

0
SHARES
23
VIEWS

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.

Table of Contents

    Initial Troubleshooting Steps for Website Downtime

    • Two websites on the same VPS were down—but not in the same way.
    • Other websites on the same VPS and the same cPanel account were working fine, resolving correctly, and loading without issues.
    • However, one of the downed websites returned an NXDOMAIN error, indicating that its DNS records did not contain the domain name.
    • There was no DNS resolution, server response, or immediate explanation for why this happened.

    🛠 Step 1: Identifying the Problem

    • We first ran nslookup and dig to check DNS resolution.
    • The NXDOMAIN error meant the domain was not resolving.
    • Checked the WHOIS record to confirm domain status and name servers.
    • Discovered the domain was using parked nameservers instead of pointing to our VPS.

    🛠 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:

    • Checked system uptime and resource usage to ensure no crashes or outages.
    • Loaded other sites hosted on the same VPS to confirm they were working.
    • Confirmed that this was a site-specific issue rather than a server-wide problem.

    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

    DNS propagation check showing missing A records globally

    Domain Expiry Check

    • Used WHOIS to confirm the domain was active (not expired).
    • Verified the registration details.

    DNS Propagation Check

    • Used whatsmydns.net to check global DNS resolution.
    • Found that the A record was missing everywhere.

    Checking Web Hosting & Server Status

    • Verified that the VPS was running.
    • Checked apache2 / nginx status to confirm the web server was active.
    • Ensured the firewall wasn’t blocking access.

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

    Domain name pointing to parked nameservers instead of VPS

    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:

    • One website’s DNS records were completely removed when the previous hosting provider expired, making it impossible to resolve.
    • The other website changed its nameservers, pointing to a location different from our VPS.

    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

    • Logged into the domain registrar and replaced the parked nameservers with the correct ones from our hosting provider.
    • Added an A record pointing to our VPS IP.

    Verifying Propagation

    • After updating, we waited for DNS changes to propagate.
    • Used CLI (nslookup, dig) and online tools to track progress.

    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?

    • Some hosting companies automatically remove all DNS zone records when a hosting plan expires.
    • Even if the domain is registered, the system wipes out the DNS settings, making the website inaccessible.
    • Users assume that just pointing the domain to a new hosting provider will work, but without DNS records, nothing resolves.

    How to Fix It

    1. Contact the Previous Hosting Provider

    • If your previous hosting still controls the nameservers, ask them to restore the DNS zone.
    • If they refuse or delete everything permanently, you must manually set up DNS records.

    2. Manually Add New DNS Records

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

    • A Record → Points the domain to the new hosting IP.
    • CNAME Record → For subdomains like www.
    • MX Records → If using email hosting.
    • TXT Records → For email authentication (SPF, DKIM).

    🚀 Step 7: Confirming the Fix

    • After propagation was completed, we reran tests.
    • The domain is now properly resolved.
    • The website was accessible again.

    🔑 Key Lessons from Troubleshooting Website Downtime

    • Always check DNS records, WHOIS status, and propagation when facing downtime.
    • VPS and DNS issues are not always the same—identify the root cause before applying fixes.
    • Hosting providers may delete DNS records upon expiration, so it’s crucial to back up DNS settings.
    • Monitor nameservers and A records after domain migrations to avoid misconfigurations.

    🚀 Before You Go:

    • 👏 Found this guide helpful? Give it a like!
    • 💬 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!

    Join the Community →
    Tags: DNS Propagation DelayDNS TroubleshootingFixing NXDOMAIN ErrorsHosting Expiry and DNS ProblemsServer AdministrationVPS Hosting IssuesWebsite Downtime
    ADVERTISEMENT
    Previous Post

    Complex Event Processing (CEP): Real-Time Data Analytics & Applications

    Next Post

    15+ Common Elementor Issues (And How to Fix Them Quickly!)

    Related Posts

    Developers Troubleshooting Server Issues in Data Center
    Server Knowledge

    Why Basic Server Knowledge Is Crucial for Every Developer?

    March 16, 2024
    Next Post
    Frustrated user facing a website error on a laptop, indicating Elementor troubleshooting issues.

    15+ Common Elementor Issues (And How to Fix Them Quickly!)

    Leave a Reply Cancel reply

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

    Save 20% with Code mainul76 on Pictory AI - Limited-Time Discount Save 20% with Code mainul76 on Pictory AI - Limited-Time Discount Save 20% with Code mainul76 on Pictory AI - Limited-Time Discount

    You might also like

    User interface of a blog application showing a list of posts with titles, authors, and publication dates

    Building a Blogging Site with React and PHP: A Step-by-Step Guide

    February 10, 2024
    JavaScript ES6 features for React development

    Essential ES6 Features for Mastering React

    July 26, 2023
    Word cloud featuring modern software development key terms.

    Modern Software Development Practices, Terms and Trends

    January 23, 2024
    Globe with HTTP Protocol - Understanding JavaScript HTTP Request Libraries

    HTTP Requests in JavaScript: Popular Libraries for Web Developers

    March 5, 2024
    Stylized JavaScript JS logo alongside Advanced text, representing in-depth JavaScript programming concepts

    25 Advanced JavaScript Features You Should Know

    December 28, 2024
    Hands typing on a laptop with API development icons, showcasing technology and integration

    Integrate Dropbox API with React: A Comprehensive Guide

    September 6, 2024
    Fiverr affiliates promotional banner - Get paid to share Fiverr with your network. Start Today. Fiverr affiliates promotional banner - Get paid to share Fiverr with your network. Start Today. Fiverr affiliates promotional banner - Get paid to share Fiverr with your network. Start Today.
    Coursera Plus promotional banner - Save 40% on one year of Coursera Plus. Subscribe now. Coursera Plus promotional banner - Save 40% on one year of Coursera Plus. Subscribe now. Coursera Plus promotional banner - Save 40% on one year of Coursera Plus. Subscribe now.
    Namecheap .COM domain promotional banner - Get a .COM for just $5.98. Secure a mighty domain for a mini price. Claim now. Namecheap .COM domain promotional banner - Get a .COM for just $5.98. Secure a mighty domain for a mini price. Claim now. Namecheap .COM domain promotional banner - Get a .COM for just $5.98. Secure a mighty domain for a mini price. Claim now.
    WebDevStory logo

    Empowering your business with tailored web solutions, expert SEO, and cloud integration to fuel growth and innovation.

    Contact Us

    Hans Ross Gate 3, 0172, Oslo, Norway

    +47-9666-1070

    info@webdevstory.com

    Stay Connected

    • Contact
    • Privacy Policy

    © webdevstory.com

    Welcome Back!

    Login to your account below

    Forgotten Password?

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In
    No Result
    View All Result
    • Tech
      • Software Testing
      • IT and Management
      • Software Engineering
      • Technology
    • Web
      • JavaScript
      • Web Development
      • Front-end Development
      • React
      • Database Technologies
    • AI
      • AI and Machine Learning
      • AI in Education
      • AI Learning
      • AI Prompts
    • Programming
      • Coding
      • Design Patterns
    • Misc
      • Digital Transformation
      • SEO
      • Technology and Business
      • Technology and Innovation
      • Developer Roadmaps
      • Digital Marketing
    • More
      • Newsletter
      • Support Us
      • Contact
      • Tech & Lifestyle
      • Digital Nomadism
    • Services
      • Tech Services
      • WordPress Maintenance Package

    © webdevstory.com