ThisCalculator

Everyday

How to Troubleshoot WordPress Domain and DNS Problems

Updated · Standard formula, shown below

When your WordPress site suddenly shows a blank page, a “site can’t be reached” error, or redirects to the wrong address, the cause is often a domain or DNS issue. This guide walks you through the most common problems—from domain expiration to DNS propagation—and gives you clear, step-by-step fixes so you can get your site back online quickly.

What You’ll Need

  • Access to your domain registrar account (where you bought the domain, e.g., GoDaddy, Namecheap, Google Domains)
  • Access to your WordPress hosting control panel (cPanel, Plesk, or your host’s custom panel)
  • Your WordPress admin login credentials (if the site is partially working)
  • A computer or phone with internet access
  • A way to run command-line tools (Terminal on Mac/Linux, Command Prompt on Windows) or use online DNS lookup tools

Step-by-Step

  1. Check if the problem is domain-related or hosting-related. Open your browser and try to load your site. If you see a browser error like “This site can’t be reached” or “DNS_PROBE_FINISHED_NXDOMAIN”, it’s likely a DNS or domain issue. If you see a WordPress error (like “Error establishing a database connection”), it’s a hosting issue—skip to the Troubleshooting section.
  2. Verify your domain hasn’t expired. Log in to your domain registrar account and check the expiration date. If it’s expired, renew it immediately. It can take up to 48 hours for the domain to reactivate after renewal.
  3. Check if your domain is locked or on hold. In your registrar account, look for a “Domain Lock” or “Transfer Lock” setting. If it’s locked, unlock it temporarily (if you’re not transferring). Also check if the domain is on hold due to unpaid fees or legal issues—your registrar will show a status.
  4. Find your current DNS nameservers. In your registrar account, look for “DNS Settings” or “Nameservers.” Note the nameservers listed (e.g., ns1.hostingcompany.com). These should point to your hosting provider’s nameservers.
  5. Compare with your hosting provider’s nameservers. Log in to your hosting control panel and find the nameservers your host has assigned to your account (often in a “Welcome” email or under “Account Settings”). If they don’t match, update the nameservers at your registrar to match your host’s. This change can take 24–48 hours to propagate.
  6. Check DNS records (A, CNAME, MX). If your nameservers are correct, but the site still doesn’t load, verify that the DNS records are set correctly. You can use an online DNS lookup tool (like dnschecker.org) or command-line nslookup to see your A record. The A record should point to your hosting server’s IP address. If it’s wrong, update it in your registrar’s DNS editor (or hosting panel if you use custom DNS).
  7. Flush your local DNS cache. Sometimes your computer has cached an old DNS record. On Windows, open Command Prompt and run ipconfig /flushdns. On Mac, run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal. Then try loading your site again.
  8. Check your WordPress address settings. If the site loads but redirects to a wrong URL, log in to your WordPress admin (if possible) and go to Settings > General. Ensure the “WordPress Address (URL)” and “Site Address (URL)” are correct (e.g., https://yourdomain.com). If you can’t log in, you can fix this via phpMyAdmin (change the siteurl and home options in the wp_options table) or by adding define('WP_HOME', 'http://yourdomain.com'); define('WP_SITEURL', 'http://yourdomain.com'); to your wp-config.php file.
  9. Wait for DNS propagation. If you’ve made DNS changes, it can take up to 48 hours for them to spread across the internet. Use a tool like whatsmydns.net to check if the changes are visible globally. If they are, but your local network still shows old records, wait a few hours and try again.

Common Mistakes

  • Mixing up nameservers and DNS records. Nameservers are the servers that hold your DNS records. If you change nameservers, you must ensure the DNS records (A, CNAME) are present on the new nameservers. Often, when you switch hosts, you need to recreate DNS records on the new host’s DNS manager.
  • Forgetting to update the A record after changing hosting servers. If you move your site to a new host, your domain’s A record must be updated to point to the new server’s IP. Many people update nameservers but forget the A record if they use custom DNS.
  • Setting WordPress URL with http vs https. If you have an SSL certificate, your site URL should start with https://. Using http:// can cause redirect loops or mixed content warnings.
  • Typing the domain with www vs without. If your site loads with www.yourdomain.com but not yourdomain.com (or vice versa), you may need to set up a redirect or add a CNAME record for the www subdomain.

Tips

  • Use a DNS propagation checker. Tools like whatsmydns.net let you see if your DNS changes have propagated across the globe. This helps you determine if the problem is on your end or still propagating.
  • Keep a backup of your DNS settings. Before making any changes, screenshot your current DNS records. This makes it easy to revert if something goes wrong.
  • Set a longer TTL (Time to Live) for critical records. If you plan to make changes, lower the TTL to 300 seconds (5 minutes) a day before, so changes propagate faster. After the change, you can increase it back to 3600 or more.
  • Use your host’s support. Most hosting providers have 24/7 support. If you’re stuck, they can check if your domain is pointing to their servers correctly.

Troubleshooting

If the steps above don’t resolve the issue, try these additional checks:

  • Check if your site is down for everyone or just you. Use a service like downforeveryoneorjustme.com. If it’s just you, it’s likely a local DNS cache or network issue—flush your DNS and try a different network (e.g., mobile data).
  • Try accessing your site via its IP address. If you know your server’s IP (ask your host), type it directly into your browser (e.g., http://192.168.1.1). If the site loads, the problem is definitely DNS. If not, it’s a hosting issue.
  • Check for SSL certificate issues. If you see a security warning, your SSL certificate may be invalid or not installed. Contact your host to reissue it.
  • Review your .htaccess file. A misconfigured .htaccess can cause redirect loops or 500 errors. You can temporarily rename it to .htaccess.bak via FTP or file manager to see if that fixes the issue.
  • Check your hosting server’s status. Some hosts have a status page. If your server is down, you’ll need to wait for your host to fix it.

Frequently Asked Questions

How long does DNS propagation take?

Typically 24–48 hours, but it can be faster (a few hours) or slower (up to 72 hours) depending on your ISP and the TTL settings.

What is the difference between nameservers and DNS records?

Nameservers are the servers that store your DNS records. DNS records (like A, CNAME, MX) are the actual mappings between your domain and IP addresses/services. You can change nameservers to point to a different DNS provider, but the records must exist on those new nameservers.

Why does my site work on my phone but not my computer?

This is usually due to local DNS caching. Your computer may have cached an old DNS record, while your phone hasn’t visited the site recently. Flush your computer’s DNS cache.

I changed my nameservers, but my site still shows the old hosting page. Why?

DNS changes take time to propagate. Also, if you changed nameservers but didn’t add the correct DNS records (like A record) on the new nameservers, your site won’t load correctly. Double-check your DNS records.

Can I use my domain’s IP address to access my WordPress site?

Yes, but WordPress may not work correctly because the site URL is tied to the domain. You can temporarily edit your wp-config.php to define WP_HOME and WP_SITEURL with the IP address to test, but remember to revert it.

What should I do if my domain is expired and now shows a parking page?

Renew your domain immediately. After renewal, it may take up to 48 hours for the domain to become active again. If it doesn’t, contact your registrar’s support.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.