Diagnose a DNS problem step by step

Trace a domain from registry to record — registration, nameservers, authoritative answers, caches and DNSSEC — to find exactly where resolution breaks.

TutorialAdvanced30 min to completeLast updated
On this page
  1. What you’ll need
  2. Step 1: Confirm the domain is registered and active
  3. Step 2: Check the delegation
  4. Step 3: Ask the authoritative nameserver
  5. Step 4: Compare with a public resolver
  6. Step 5: Check for DNSSEC problems
  7. Step 6: Check the specific name
  8. Step 7: Check your own device
  9. Check it worked
  10. If something goes wrong
Level
Advanced
Time
About 30 min
Steps
7
You’ll finish with
A working result, checked

7 steps

What you’ll need

  • A terminal with dig or nslookup, or an online DNS tool
  • Access to your registrar account

DNS problems feel mysterious because the answer can differ depending on where you ask. This tutorial asks in a fixed order, from the top of the chain to your own browser, so the break becomes obvious.

Step 1: Confirm the domain is registered and active

WHOIS the domain. Check the status and expiry date. Anything like clientHold, serverHold or expired stops resolution. What happens when a domain expires?

Step 2: Check the delegation

dig yourdomain.co.uk NS +short

Expect ns1.traxio.co.uk, ns2.traxio.co.uk and ns3.traxio.co.uk. If different, the registrar has other nameservers set. How to point your domain to Traxio (change nameservers)

Step 3: Ask the authoritative nameserver

dig @ns1.traxio.co.uk yourdomain.co.uk A

Read the status: line. NOERROR with an answer is good. NXDOMAIN means the name doesn’t exist in the zone; REFUSED means that nameserver doesn’t hold the zone.

Step 4: Compare with a public resolver

dig @1.1.1.1 yourdomain.co.uk A
dig @8.8.8.8 yourdomain.co.uk A

If these show old values while step 3 shows new ones, you’re waiting for caches. Why DNS changes take time (DNS propagation)

Step 5: Check for DNSSEC problems

A SERVFAIL status from public resolvers but a good answer in step 3 points to DNSSEC.

dig yourdomain.co.uk DS +short

If a DS record exists but the zone isn’t signed, remove the DS record at the registrar. What is DNSSEC?

Step 6: Check the specific name

Repeat step 3 for exactly the failing name (www, mail, a subdomain) and record type. Look for a CNAME blocking other records, or a missing entry.

Step 7: Check your own device

If every lookup above is right but your browser disagrees, flush DNS, remove any hosts file entry and try mobile data. How to clear your DNS cache (Windows, Mac, browsers, phones)

Check it worked

You’ve identified the first step in the chain where the answer is wrong — registration, delegation, zone record, cache, DNSSEC or local device — and corrected it.

If something goes wrong

What happensWhat to do
dig isn’t installed on WindowsUse nslookup, or an online dig tool that lets you choose the server to query.
Answers change between runsMultiple A records for the same name, or propagation in progress.

Where this fits: DirectAdmin hosting explains the control panel every Traxio account uses, with a tour and tutorials.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going