Website owner reviewing DNS records that route a domain to web, mail and application servers

Editorial illustration; the records shown are examples, not a real domain.

You open your website and get a browser error. You check the hosting dashboard, and the server is green. You message a colleague in another office, and the site loads fine for them. Within ten minutes, someone in the group chat suggests changing the nameservers, deleting the A record, or migrating the whole site to a new host.

That panic is how a minor DNS hiccup turns into a four-hour outage.

DNS—the Domain Name System—is the directory that turns a human-readable hostname like example.com into the IP address of a server. When that lookup returns the wrong address, fails to resolve, or sits half-updated across different resolvers, your site looks dead even though Nginx, IIS, or your database is humming along untouched. The right question during an outage is never “Which toggle should I click?”—it is “Where along the lookup path is the answer breaking?”

How a domain name actually reaches your server

When a visitor types www.example.com, several separate parties are involved:

  1. The registrar holds the domain registration (for example, Namecheap, GoDaddy, or a .my registrar via MYNIC).
  2. The registrar delegates the domain to authoritative nameservers (such as Cloudflare, Route 53, or your web host’s DNS).
  3. Those authoritative nameservers publish your actual zone records: A, AAAA, CNAME, MX, and TXT.
  4. A recursive resolver—run by your ISP (like Unifi or Maxis), your office router, or a public resolver like 1.1.1.1 or 8.8.8.8—fetches the answer and caches it.
  5. The browser connects to the IP address returned.

Because these roles are often split across three different companies, one of the most common mistakes I see is editing DNS records in the registrar’s dashboard while the domain’s nameservers actually point to Cloudflare or a cPanel host. You can edit that inactive zone all afternoon and nothing on the public internet will ever change.

Confirm what fails and from which networks

Before touching any dashboard, write down what is actually failing. Test both the apex domain (example.com) and the www subdomain (www.example.com) separately. Try your office Wi-Fi and then switch to mobile data on your phone—sometimes a local router or ISP resolver is holding a stale record while the rest of the country sees the new one.

Read the exact error message instead of lumping everything under “site down”:

  • NXDOMAIN (DNS_PROBE_FINISHED_NXDOMAIN) means the resolver got an authoritative answer saying that hostname does not exist.
  • A connection timeout (ERR_CONNECTION_TIMED_OUT) usually means DNS did return an IP, but the firewall, server, or network path to that IP is unreachable.
  • An SSL/TLS certificate warning means DNS resolved to a server, but it may be the wrong server or missing a valid certificate for that hostname.
  • An HTTP 404 or 500 means DNS worked completely; your request reached a web server and the application itself is failing.

Find the authoritative nameservers first

Never edit a DNS record until you know which provider is currently authoritative for the domain. Run a quick NS lookup from your terminal:

dig +short NS example.com

If that returns alex.ns.cloudflare.com and kara.ns.cloudflare.com, then Cloudflare is your live DNS zone—not your domain registrar, and not your cPanel hosting panel. Look up the registrar settings too if you recently migrated nameservers, because some registries take a little time to update delegation across root/TLD servers. Writing down the active nameservers takes ten seconds and stops you from editing a dead dashboard.

Query the exact hostname visitors type

Having an A record for example.com does not automatically make www.example.com, portal.example.com, or api.example.com work. Each hostname needs its own record (or an explicit wildcard).

Query the failing hostname directly against a public resolver and against the authoritative nameserver:

dig @1.1.1.1 A example.com +short
dig @1.1.1.1 AAAA example.com +short
dig @1.1.1.1 CNAME www.example.com +short

One trap that catches teams off guard is an orphaned AAAA (IPv6) record. You migrate a site to a new VPS, update the A record to the new IPv4 address, and forget the old AAAA record from the previous host. Visitors on IPv4-only networks see the new site; visitors on mobile networks or dual-stack broadband connect over IPv6 and hit the old server (or a dead IP). Always check both A and AAAA.

Match live records against your host’s target

Open your hosting or cloud platform dashboard and compare its expected DNS target character by character against what dig returned. Look for:

  • An old IP address left behind after a server move.
  • A CNAME pointing to a deleted staging app or expired SaaS endpoint.
  • A trailing typo in a hostname or a missing proxy/DNS-only toggle in Cloudflare (for instance, setting a record to Proxied when a platform requires DNS-only for custom TLS verification, or vice versa).
  • example.com and www.example.com pointing to two completely different origins.

If you want to verify that the origin web server itself is healthy before blaming or changing DNS, test it directly with curl --resolve:

curl -I --resolve www.example.com:443:203.0.113.10 https://www.example.com/

If that returns HTTP/2 200, your server and TLS certificate are fine—the problem is purely in how DNS is routing visitors to that IP.

Separate resolver caching from a broken zone

Every DNS record carries a TTL (Time to Live) in seconds, telling resolvers how long they may cache an answer before asking again. After a legitimate IP change, it is normal for one ISP resolver to serve the old IP for another 15 minutes while another resolver already serves the new one.

However, “it’s just DNS propagation” is a terrible excuse when the authoritative nameserver itself has the wrong value. Query the authoritative nameserver directly to see the ground truth:

dig @alex.ns.cloudflare.com A example.com +noall +answer

If that command returns the wrong IP, waiting 48 hours will not fix it. Conversely, if it returns the right IP, stop touching the zone—making three more edits while resolvers are still expiring the first TTL only extends the confusion.

Watch out for stale DNSSEC records after a move

DNSSEC cryptographically signs DNS responses so resolvers can verify they were not tampered with. It is great for security, but a mismatched DS record at the registrar after switching DNS providers will cause validating resolvers (including 1.1.1.1, 8.8.8.8, and major ISP resolvers) to fail with SERVFAIL.

If a site suddenly becomes unreachable right after a nameserver change and dig +dnssec example.com returns SERVFAIL, check whether DNSSEC was left enabled at the registrar with an old DS record from the previous DNS host. Either remove/disable the stale DS record before migrating, or update it to match the new DNS provider’s key.

Keep mail records intact while fixing the website

In a rush to “clean up” a broken zone, people sometimes delete records they do not recognise. That is how a website fix turns into a company-wide email outage.

Websites rely on A, AAAA, and CNAME records. Email delivery relies on MX records, while spam protection and deliverability rely on TXT records for SPF, DKIM, and DMARC—plus domain verification records for Microsoft 365, Google Workspace, or payment gateways. Before deleting anything, export the zone file or take a screenshot of every existing record.

A repeatable recovery sequence

When an incident hits, stick to a calm order:

  1. Record the exact browser error, hostname, timestamp, and which networks are affected.
  2. Check NS records to confirm which provider owns the live zone.
  3. Query A, AAAA, and CNAME for the exact failing hostname (and check both example.com and www).
  4. Compare the live answer against your host’s target, and test the origin IP directly with curl --resolve.
  5. Check DS / DNSSEC state if the outage followed a nameserver migration.
  6. Export or screenshot the current zone, then make one targeted fix.
  7. Verify from a second network (mobile data vs Wi-Fi) and confirm email (MX) still resolves.

DNS is boring when it works, which is why people forget how it is wired together until it breaks. Documenting where your nameservers live and keeping a copy of your zone records turns a stressful outage into a five-minute lookup.

For related guides that complement this checklist, see:

Sources