Skip to content
FunnelGuard

Fix guide by FunnelsGuard

DNS lookup slow or failing intermittently: how to find and fix it

PRF-070Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Before a browser can load www.example.com, it asks DNS (the Domain Name System, the internet's address book) for the server's IP address. This is the DNS lookup. It normally takes a few milliseconds to a few tens of milliseconds, and is cached afterwards.

The issue has two forms. Slow: the authoritative nameservers (the ones that hold your records) take hundreds of milliseconds or more to answer. Intermittent failure: some lookups time out or return errors such as SERVFAIL or NXDOMAIN, so some visitors see 'This site can't be reached' while others load the page fine.

Common causes: a cheap or overloaded registrar DNS, one nameserver that is down or out of sync with the others, mismatched nameservers at the registrar, a very low TTL (time to live, how long answers may be cached) that forces constant re-lookups, long CNAME chains, and records that were deleted or mistyped during a migration.

Why it costs you leads or sales

DNS comes first, so every delay is added before anything else happens. A paid click that waits on DNS pays for a visit that may be abandoned before the page appears. Intermittent failures are worse: they are hard to reproduce, so you may never see them yourself, while a share of visitors, emails links and ad clicks quietly fail.

It can also hit more than your website. If the same domain handles tracking subdomains, form endpoints, checkout or email records, failed lookups can break those too.

Where a failed DNS lookup breaks the journey
  1. Ad or link clickVisitor clicks and the browser starts
  2. DNS lookupNameserver times out or returns an error
  3. Page loadsNever starts
  4. Tracking tagsNever run
  5. Form or checkoutNever reached

The visitor never reaches the page, so nothing after the lookup happens.

Time before the page starts, by DNS speedExample numbers
Time before the page starts, by DNS speed (example)Fast managed DNS: 20 ms; Average registrar DNS: 120 ms; Overloaded DNS: 600 ms; Timeout then retry: 2,000 ms07671,533201206002,000Fast managed DNSAverage registrar DNSOverloaded DNSTimeout then retryms

Example: illustrative DNS lookup times for a first-time visitor, not measured data.

How to check if your site has it

Test the authoritative nameservers directly, more than once and from more than one place. One good result proves little with an intermittent fault.

Test your DNS
  1. List your nameservers

    Run the command below. You should see at least two, ideally on different networks.

  2. Query each nameserver directly

    Ask each one for your domain and read the 'Query time' line. Repeat 10 times. Consistently high times, timeouts or different answers between servers are the problem.

  3. Compare with the registrar

    Check that the nameservers shown at your domain registrar match the NS records returned above. A mismatch gives random failures.

  4. Test from other locations

    Use an online DNS propagation or multi-location lookup tool to see whether some regions fail or return old addresses.

  5. Check the browser

    In Chrome DevTools, Network tab, click the main document and open Timing. A long 'DNS Lookup' bar on a first visit is a warning sign. Errors like ERR_NAME_NOT_RESOLVED point to failure.

Check nameservers and query timebash
dig NS example.com +short

# Query one nameserver directly (replace ns1.example-dns.com)
dig @ns1.example-dns.com www.example.com A +noall +answer +stats

# Repeat to spot intermittent failures
for i in 1 2 3 4 5 6 7 8 9 10; do dig @ns1.example-dns.com www.example.com +noall +stats | grep 'Query time'; done

How to fix it

Fix slow or failing DNS
  1. Make the nameservers consistent

    At the registrar, make sure the nameserver list matches your DNS host exactly. Remove old nameservers left from a previous provider.

  2. Use a reliable managed DNS provider

    If query times are high or a server times out, move your DNS zone to a provider with a global network and several nameservers (for example Cloudflare DNS, Amazon Route 53 or Google Cloud DNS). Copy every record first, then change the nameservers at the registrar.

  3. Copy all records before switching

    Export the zone and check A, AAAA, CNAME, MX and TXT records. Missing records are a common cause of NXDOMAIN after a move.

  4. Set sensible TTLs

    Use around 300 seconds before a planned change, then raise to 3600 seconds or more for stable records so resolvers can cache them.

  5. Remove long CNAME chains and stale records

    Point the record directly at its target where you can. Delete records for services you no longer use.

  6. Check IPv6 records

    If you have an AAAA record, make sure it points to a working server. A bad AAAA record can cause delays or failures for some visitors.

Where to change DNS on your platform
  1. Find where DNS is managed

    WordPress itself has no DNS settings. DNS lives at your registrar, host or a service such as Cloudflare. Check the nameservers with dig to see which.

  2. Edit records there

    Fix the A or CNAME record for the site at that provider, and ask your host for the correct server address.

How to confirm it's fixed

Confirm the fix
  • Registrar nameservers match the NS records returned by dig
  • Each nameserver answers 10 out of 10 queries with the same result
  • Query times are consistently low (tens of milliseconds)
  • Multi-location DNS checker shows the right address everywhere
  • Both the root domain and www resolve
  • The page loads in a private window and on mobile data
  • Tracking and form requests still reach their endpoints

How to prevent it happening again

Prevention
  • Keep DNS with a provider that has multiple nameservers on separate networks
  • Export a backup of your zone file after each change
  • Lower TTLs only before a planned change, then raise them again
  • Turn on registrar auto-renewal so the domain never lapses
  • Review records after every migration or tool change
  • Run scheduled checks of your key pages so failures are noticed quickly

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real customer journeys on a schedule from the EU or the US, and when a page cannot be reached because the name does not resolve, the step fails. The failure is re-checked from a second region, then one alert goes out with a screenshot and a likely cause. So failures caused by DNS are seen.

What it does not do is measure DNS lookup time. A slow but working lookup will not be flagged as a DNS problem, and a failure that happens only for some visitors or resolvers may not show in a scheduled check.

To cover the rest by hand, run the dig tests above every so often, use a multi-location DNS checker after any DNS change, and look at the DNS Lookup bar in browser DevTools. You can start with the Free plan (1 site, 2 journeys, daily checks, no card), and paid plans have a 3-day free trial.

DNS setup before and after

Problem

  • Registrar and DNS host list different nameservers
  • One nameserver times out
  • Stale AAAA record points to a dead server
  • Visitors sometimes see 'site can't be reached'

Fixed

  • Nameservers match everywhere
  • All nameservers answer quickly
  • Records point only to live servers
  • Pages load consistently from every region

Questions people ask

Why is my website sometimes not loading but works after a refresh?

A common cause is an intermittent DNS failure. One of your nameservers may time out or return an error, so some lookups fail and a retry hits a healthy server. Query each nameserver several times with dig to see if one is unreliable.

How do I check my DNS lookup time?

Run dig @your-nameserver www.yourdomain.com and read the 'Query time' line, repeating it several times. You can also open Chrome DevTools, select the page request in the Network tab and look at the DNS Lookup bar under Timing.

What is a good DNS lookup time?

For a managed DNS provider, answers usually come back in tens of milliseconds. Consistent times of several hundred milliseconds, or any timeouts, point to an overloaded or poorly located nameserver worth fixing.

Why does DNS_PROBE_FINISHED_NXDOMAIN appear only for some visitors?

It means a resolver was told the domain does not exist. This can happen when nameservers disagree, a record is missing on one of them, or a recent change has not reached all resolvers. Make sure every nameserver returns the same records.

Does a low DNS TTL slow down my website?

It can. A very low TTL makes resolvers ask your nameservers again more often, so more visitors wait for a fresh lookup. Use short TTLs only around planned changes and longer ones, such as an hour, for stable records.

Should I change my DNS provider to speed up my site?

If your current nameservers answer slowly or fail, yes. Move to a managed DNS provider with several nameservers on a global network, copy all records first and then update the nameservers at your registrar.

Can FunnelGuard tell me my DNS is slow?

Not directly. FunnelGuard sees failures when a journey step cannot load because of DNS, but it does not measure DNS lookup time. Check lookup speed with dig or DevTools.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: failures seen; DNS time not measured.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.