Ahosting Logo
Knowledge Base

DNS Troubleshooting Guide

This guide covers common DNS problems and how to diagnose and fix them.

Diagnostic Tools

Command Line Tools

# Look up A record
nslookup example.com

# Look up specific record type
nslookup -type=MX example.com

# Detailed DNS query
dig example.com

# Query specific DNS server
dig @8.8.8.8 example.com

# Trace DNS resolution
dig +trace example.com

Online Tools

Issue: Domain Not Resolving

Symptoms

  • Website shows "Server not found" or "DNS_PROBE_FINISHED_NXDOMAIN"
  • nslookup returns "Non-existent domain"

Causes and Solutions

  1. Domain expired: Renew at registrar
  2. Nameservers not set: Configure nameservers at registrar
  3. No A record: Add A record in Zone Editor
  4. DNS propagation: Wait up to 48 hours
  5. Domain suspended: Contact registrar

Issue: Wrong IP Address Returned

Symptoms

  • Website shows different/wrong content
  • nslookup shows incorrect IP

Causes and Solutions

  1. Outdated cached DNS: Clear local DNS cache, wait for propagation
  2. Wrong A record: Update A record in Zone Editor
  3. Multiple A records: Remove incorrect records
  4. Using wrong nameservers: Verify nameservers at registrar

Issue: Email Not Working

Symptoms

  • Not receiving emails
  • Sending emails bounce back

Causes and Solutions

  1. Wrong MX records: Verify MX records point to correct mail server
  2. Missing MX records: Add MX records
  3. Email routing: Check cPanel Email Routing settings
  4. SPF/DKIM issues: Verify TXT records for email authentication

Issue: SSL Certificate Errors

Symptoms

  • Browser shows "Not Secure" warning
  • Certificate name mismatch

DNS-Related Causes

  1. CNAME pointing to wrong host: Update CNAME record
  2. Domain not in certificate: Ensure DNS points to server with valid SSL
  3. CAA record blocking: Check CAA records allow your CA

Issue: Subdomain Not Working

Causes and Solutions

  1. No DNS record: Add A or CNAME record for subdomain
  2. Wrong record type: Use A for IP, CNAME for hostname
  3. Not added in cPanel: Add subdomain in cPanel Domains
  4. Propagation: Wait for DNS to update

Issue: Slow DNS Resolution

Causes and Solutions

  1. DNS server issues: Try different DNS resolver (8.8.8.8)
  2. Long CNAME chains: Reduce CNAME hops
  3. Slow authoritative servers: Contact hosting provider

Common DNS Errors

Error Meaning Solution
NXDOMAIN Domain does not exist Check domain registration and nameservers
SERVFAIL DNS server failed Try different DNS server, check records
REFUSED Server refused query Verify nameservers are correct
TIMEOUT No response from server Check internet, try different DNS

When to Contact Support

  • Server-side DNS issues
  • Nameserver not responding
  • Complex DNS configurations
  • Issues persisting after 48 hours

Provide support with: Domain name, expected result, actual result, dig/nslookup output, when problem started.